mod users; use sqlx::{Pool, Postgres}; use self::users::Users; #[derive(Clone)] pub struct Database(Pool); impl Database { pub fn new(pool: Pool) -> Self { Self(pool) } pub fn users(&self) -> Users { Users::new(self.0.clone()) } }