Akulij
|
5bc6a8343d
|
create Application
|
2025-05-02 17:07:35 +03:00 |
|
Akulij
|
fdfc8a8270
|
add metas field to user to store /start meta links
|
2025-05-02 17:03:48 +03:00 |
|
Akulij
|
d3c8b7605d
|
clippy: fix warnings
|
2025-05-02 14:50:27 +03:00 |
|
Akulij
|
64641d4101
|
do not drop indexes in migration
|
2025-04-30 19:22:17 +03:00 |
|
Akulij
|
0b089113f3
|
create methods to delete single and all event(s)
|
2025-04-30 18:55:30 +03:00 |
|
Akulij
|
6f24d92215
|
drop all previous indexes in migration
|
2025-04-30 18:08:27 +03:00 |
|
Akulij
|
4d6717967d
|
create AnyCollection type in migration
reason: most of it doesn't need real type,
but will simplificate alot without real ones
|
2025-04-30 18:07:07 +03:00 |
|
Akulij
|
85f16311fa
|
set mongodb's index to clear callback info after a day
|
2025-04-30 14:37:45 +03:00 |
|
Akulij
|
48bb7b133b
|
make DbError a custom error type to handle internal errors
|
2025-04-29 19:50:42 +03:00 |
|
Akulij
|
221fb87c8f
|
create query_call_consume macro
|
2025-04-29 19:31:23 +03:00 |
|
Akulij
|
078e2fd62a
|
create CallbackInfo and its tests
|
2025-04-29 17:37:20 +03:00 |
|
Akulij
|
0973499652
|
make query_call macro public
|
2025-04-29 17:35:49 +03:00 |
|
Akulij
|
55d393eb2c
|
return result instead of unwraps in db/mod.rs
|
2025-04-28 22:40:38 +03:00 |
|
Akulij
|
4bf7c214b9
|
create update_user method on User struct
|
2025-04-27 23:55:24 +03:00 |
|
Akulij
|
345ea66f8e
|
fix cargo warnings
|
2025-04-27 23:04:58 +03:00 |
|
Akulij
|
09f7e76d96
|
create DB::init function
semantically, its better to have function, that fully prepares db
(connect and migrate)
|
2025-04-27 21:02:05 +03:00 |
|
Akulij
|
4d2d344ea2
|
fix: update is_admin only on insert (in upsert query)
|
2025-04-26 00:26:29 +03:00 |
|
Akulij
|
0a64b25044
|
fix: used wrong collection in get_literal
|
2025-04-26 00:25:32 +03:00 |
|
Akulij
|
41ac1d7cea
|
create db migration function
will contain indexes
|
2025-04-26 00:21:41 +03:00 |
|
Akulij
|
08167143aa
|
migrate db to mongodb from diesel(postgres)
|
2025-04-25 22:44:50 +03:00 |
|
Akulij
|
e2d2cebed8
|
cargo fmt
|
2025-04-25 21:05:54 +03:00 |
|
Akulij
|
a940ef5e83
|
move towards generefication of DB implementation
|
2025-04-22 22:51:54 +03:00 |
|
Akulij
|
0bc97a9f58
|
fix: in drop_media_except handle case when group is null
|
2025-04-21 22:04:17 +03:00 |
|
Akulij
|
0950ccb150
|
create db.is_media_group_exists
|
2025-04-18 13:52:45 +03:00 |
|
Akulij
|
92c4f803eb
|
add support for media_group
|
2025-04-18 13:32:21 +03:00 |
|
Akulij
|
8e3f1496ae
|
move db.rs to db/mod.rs for better file structure
|
2025-04-18 13:22:59 +03:00 |
|