create gruppen, rollen, etc...

This commit is contained in:
Peter Schiwy
2024-12-06 14:06:27 +01:00
parent bfce29c8ee
commit 623d28f77b
63 changed files with 735 additions and 185 deletions

View File

@@ -8,7 +8,8 @@ use crate::config;
pub type DB = Pool<Postgres>;
pub trait Queryer<'c>: Executor<'c, Database = sqlx::Postgres> {}
impl<'c> Queryer<'c> for &Pool<Postgres> {}
// impl<'c> Queryer<'c> for &Pool<Postgres> {}
impl<'c> Queryer<'c> for &DB {}
pub async fn connect(database: &config::Database) -> Result<DB, Error> {
PgPoolOptions::new()