pub struct TransactionManager { /* private fields */ }Implementations§
Source§impl TransactionManager
impl TransactionManager
pub fn new() -> Self
pub fn with_lock_manager(lock_manager: Arc<LockManager>) -> Self
pub fn lock_manager_arc(&self) -> Arc<LockManager> ⓘ
pub fn begin( &self, isolation_level: IsolationLevel, access_mode: TransactionAccessMode, ) -> QuillSQLResult<Transaction>
pub fn acquire_table_lock( &self, txn: &Transaction, table: TableReference, mode: LockMode, ) -> QuillSQLResult<()>
pub fn try_acquire_row_lock( &self, txn: &Transaction, table: TableReference, rid: RecordId, mode: LockMode, ) -> QuillSQLResult<bool>
pub fn acquire_row_lock( &self, txn: &Transaction, table: TableReference, rid: RecordId, mode: LockMode, ) -> QuillSQLResult<()>
pub fn commit(&self, txn: &mut Transaction) -> QuillSQLResult<()>
pub fn abort(&self, txn: &mut Transaction) -> QuillSQLResult<()>
pub fn active_transactions(&self) -> Vec<TransactionId> ⓘ
pub fn snapshot(&self, txn_id: TransactionId) -> TransactionSnapshot
pub fn transaction_status(&self, txn_id: TransactionId) -> TransactionStatus
pub fn record_recovered_status( &self, txn_id: TransactionId, status: TransactionStatus, )
pub fn ensure_next_txn_id_at_least(&self, next_txn_id: TransactionId)
pub fn oldest_active_txn(&self) -> Option<TransactionId>
pub fn next_txn_id_hint(&self) -> TransactionId
pub fn debug_snapshot(&self) -> TxnDebugSnapshot
pub fn record_row_lock( &self, txn_id: TransactionId, table: TableReference, rid: RecordId, mode: LockMode, )
pub fn unlock_row( &self, txn_id: TransactionId, table: &TableReference, rid: RecordId, )
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TransactionManager
impl !RefUnwindSafe for TransactionManager
impl Send for TransactionManager
impl Sync for TransactionManager
impl Unpin for TransactionManager
impl UnsafeUnpin 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