diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,18 +1,17 @@ #[macro_use] mod actix_ructe; +pub mod db; mod error; mod notification; pub mod routes; mod users; -use sqlx::{Pool, Postgres}; - type Result<T> = std::result::Result<T, crate::error::PinussyError>; #[derive(Clone)] pub struct Pinussy { - pub db: Pool<Postgres>, + pub db: db::Database, } #[derive(sqlx::Type)] |