kleine Änderungen
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user