TransactionManager

Trait TransactionManager 

Source
pub trait TransactionManager: Send + Sync {
    type Transaction: Transaction;

    // Required method
    fn begin_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 QueryContext,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Transaction, DatabaseError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn begin_transaction<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 QueryContext, ) -> Pin<Box<dyn Future<Output = Result<Self::Transaction, DatabaseError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementations on Foreign Types§

Source§

impl TransactionManager for PostgresConnection

Source§

type Transaction = PostgresTransaction

Source§

fn begin_transaction<'life0, 'life1, 'async_trait>( &'life0 self, _context: &'life1 QueryContext, ) -> Pin<Box<dyn Future<Output = Result<<PostgresConnection as TransactionManager>::Transaction, DatabaseError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, PostgresConnection: 'async_trait,

Implementors§