kleine Änderungen

This commit is contained in:
Peter Schiwy
2024-12-17 14:23:27 +01:00
parent 623d28f77b
commit e6a011f159
5 changed files with 99 additions and 74 deletions

View File

@@ -8,8 +8,7 @@ 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 &DB {}
impl Queryer<'_> for &DB {}
pub async fn connect(database: &config::Database) -> Result<DB, Error> {
PgPoolOptions::new()