first commit
This commit is contained in:
commit
2da598738b
15 changed files with 3758 additions and 0 deletions
11
src/db/mod.rs
Normal file
11
src/db/mod.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
pub mod postgres;
|
||||
pub mod redis_helper;
|
||||
|
||||
pub type Db = sqlx::PgPool;
|
||||
pub type Redis = redis::aio::MultiplexedConnection;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct AppState {
|
||||
pub db: Db,
|
||||
pub redis: Redis,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue