relay filter/appview bootstrap
at main 261 B view raw
1mod queries; 2 3pub use queries::*; 4 5use sqlx::PgPool; 6 7#[derive(Clone)] 8pub struct Database { 9 pool: PgPool, 10} 11 12impl Database { 13 pub fn new(pool: PgPool) -> Self { 14 Self { pool } 15 } 16 17 pub fn pool(&self) -> &PgPool { 18 &self.pool 19 } 20}