pub trait TransactionCapable: Queryable {
    // Required method
    fn start_transaction<'a, 'async_trait>(
        &'a self,
        isolation: Option<IsolationLevel>
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transaction + 'a>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
}
Expand description

A thing that can start a new transaction.

Required Methods§

source

fn start_transaction<'a, 'async_trait>( &'a self, isolation: Option<IsolationLevel> ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transaction + 'a>>> + Send + 'async_trait>>where Self: 'async_trait, 'a: 'async_trait,

Starts a new transaction

Implementors§