pub trait Connect {
type Pool: MCDatabase;
fn connect<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>
where
Self: 'async_trait;
}
Expand description
Create database connection
Required Associated Types§
sourcetype Pool: MCDatabase
type Pool: MCDatabase
database specific pool-type