pub struct TransactionManager { /* private fields */ }Expand description
Transaction Manager for MVCC
Implementations§
Source§impl TransactionManager
impl TransactionManager
Sourcepub fn new(storage: Arc<MVCCStorage>) -> Arc<Self>
pub fn new(storage: Arc<MVCCStorage>) -> Arc<Self>
Create a new transaction manager
Sourcepub fn begin(self: &Arc<Self>, isolation: IsolationLevel) -> Result<Transaction>
pub fn begin(self: &Arc<Self>, isolation: IsolationLevel) -> Result<Transaction>
Begin a new transaction
Sourcepub fn commit(&self, txn_id: TransactionId) -> Result<()>
pub fn commit(&self, txn_id: TransactionId) -> Result<()>
Commit a transaction
Sourcepub fn rollback(&self, txn_id: TransactionId) -> Result<()>
pub fn rollback(&self, txn_id: TransactionId) -> Result<()>
Rollback a transaction
Auto Trait Implementations§
impl !Freeze for TransactionManager
impl RefUnwindSafe for TransactionManager
impl Send for TransactionManager
impl Sync for TransactionManager
impl Unpin for TransactionManager
impl UnwindSafe for TransactionManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more