Trait db_core::ops::Connect

source ·
pub trait Connect {
    type Pool: SCDatabase;

    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

Required Associated Types§

database specific pool-type

Required Methods§

database specific error-type create connection pool

Implementors§