pub trait ExecutorExt<'c, 'q, 'async_trait, T>: Executor<'c>where
    T: 'async_trait + From<<Self::Database as Database>::Row>,
    Self: Sync + 'async_trait,
    'c: 'async_trait,
    'q: 'async_trait,{
    // Provided methods
    fn execute(self, sql: &'q str) -> BoxFuture<'async_trait, Result<(), Error>> { ... }
    fn fetch_all(
        self,
        sql: &'q str
    ) -> BoxFuture<'async_trait, Result<Vec<T>, Error>> { ... }
    fn fetch_one(self, sql: &'q str) -> BoxFuture<'async_trait, Result<T, Error>> { ... }
    fn fetch_optional(
        self,
        sql: &'q str
    ) -> BoxFuture<'async_trait, Result<Option<T>, Error>> { ... }
}

Provided Methods§

source

fn execute(self, sql: &'q str) -> BoxFuture<'async_trait, Result<(), Error>>

source

fn fetch_all( self, sql: &'q str ) -> BoxFuture<'async_trait, Result<Vec<T>, Error>>

source

fn fetch_one(self, sql: &'q str) -> BoxFuture<'async_trait, Result<T, Error>>

source

fn fetch_optional( self, sql: &'q str ) -> BoxFuture<'async_trait, Result<Option<T>, Error>>

Implementors§