summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 591d0c6..2105040 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)]