Trait quaint::connector::TransactionCapable
source · pub trait TransactionCapable: Queryablewhere
Self: Sized,{
// Provided method
fn start_transaction<'life0, 'async_trait>(
&'life0 self,
isolation: Option<IsolationLevel>
) -> Pin<Box<dyn Future<Output = Result<Transaction<'_>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
A thing that can start a new transaction.
Provided Methods§
sourcefn start_transaction<'life0, 'async_trait>(
&'life0 self,
isolation: Option<IsolationLevel>
) -> Pin<Box<dyn Future<Output = Result<Transaction<'_>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn start_transaction<'life0, 'async_trait>( &'life0 self, isolation: Option<IsolationLevel> ) -> Pin<Box<dyn Future<Output = Result<Transaction<'_>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Starts a new transaction
Implementors§
impl TransactionCapable for PooledConnection
Available on
pooled
only.