pub struct TxnContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> TxnContext<'a>
impl<'a> TxnContext<'a>
pub fn new(manager: Arc<TransactionManager>, txn: &'a mut Transaction) -> Self
pub fn snapshot(&self) -> &TransactionSnapshot
pub fn is_visible(&self, meta: &TupleMeta) -> bool
pub fn read_visible_tuple( &mut self, table: &TableReference, rid: RecordId, meta: &TupleMeta, tuple: Tuple, ) -> QuillSQLResult<Option<Tuple>>
pub fn lock_row_exclusive( &mut self, table: &TableReference, rid: RecordId, ) -> QuillSQLResult<()>
pub fn lock_table( &mut self, table: TableReference, mode: LockMode, ) -> QuillSQLResult<()>
pub fn ensure_writable( &self, table: &TableReference, operation: &str, ) -> QuillSQLResult<()>
pub fn isolation_level(&self) -> IsolationLevel
pub fn transaction(&self) -> &Transaction
pub fn transaction_mut(&mut self) -> &mut Transaction
pub fn manager(&self) -> &TransactionManager
pub fn txn_id(&self) -> TransactionId
pub fn unlock_row(&self, table: &TableReference, rid: RecordId)
pub fn command_id(&self) -> CommandId
Auto Trait Implementations§
impl<'a> Freeze for TxnContext<'a>
impl<'a> !RefUnwindSafe for TxnContext<'a>
impl<'a> Send for TxnContext<'a>
impl<'a> Sync for TxnContext<'a>
impl<'a> Unpin for TxnContext<'a>
impl<'a> UnsafeUnpin for TxnContext<'a>
impl<'a> !UnwindSafe for TxnContext<'a>
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