generated from Patagia/template-nix
11 lines
214 B
Rust
11 lines
214 B
Rust
use sqlx::postgres::PgPool;
|
|
|
|
pub struct ControllerContext {
|
|
pub pg_pool: PgPool,
|
|
}
|
|
|
|
impl ControllerContext {
|
|
pub fn new(pg_pool: PgPool) -> ControllerContext {
|
|
ControllerContext { pg_pool }
|
|
}
|
|
}
|