pub trait TransactionSession {
// Required methods
fn commit<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait>>
where Self: 'async_trait;
fn rollback<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait>>
where Self: 'async_trait;
}Expand description
Represents an open transaction
Required Methods§
Implementors§
impl TransactionSession for DatabaseTransaction
impl TransactionSession for RestrictedTransaction
Available on crate feature
rbac only.