Trait db_sqlx_postgres::prelude::Connect [−][src]
pub trait Connect {
type Pool: LibAdminDatabase;
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: LibAdminDatabase
type Pool: LibAdminDatabase
database specific pool-type