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 database connection

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

Implementors