Trait db_sqlx_postgres::dev::Connect
[−]pub trait Connect {
type Pool: MCDatabase;
fn connect<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
where
Self: 'async_trait;
}
Expand description
Create databse connection
Associated Types
type Pool: MCDatabase
type Pool: MCDatabase
database specific pool-type