Trait Exec

Source
pub trait Exec {
    // Required method
    fn exec<'a, 'life0, 'async_trait>(
        &'life0 self,
        stmt: Statement<'a>,
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Helper Trait to implement the exec method on Client.

Required Methods§

Source

fn exec<'a, 'life0, 'async_trait>( &'life0 self, stmt: Statement<'a>, ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

executes stmt on self.

returns the number of affected results

Implementors§