Trait rbatis::executor::Executor[][src]

pub trait Executor: RbatisRef {
    fn exec<'life0, 'life1, 'async_trait>(
        &'life0 self,
        sql: &'life1 str,
        args: Vec<Bson>
    ) -> Pin<Box<dyn Future<Output = Result<DBExecResult, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn fetch<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        sql: &'life1 str,
        args: Vec<Bson>
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
    where
        T: DeserializeOwned,
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

Implementors