pub trait RowLockSession {
// Required methods
fn lock_manager(&self) -> Arc<RowLockManager> ⓘ;
fn lock_row(
&self,
table: &str,
doc_id: DocId,
strength: LockStrength,
wait: LockWait,
display_name: &str,
) -> Result<LockAcquire, SQLError>;
fn uses_fixed_snapshot(&self) -> bool;
fn committed_row_successor(
&self,
table: &str,
doc_id: DocId,
) -> Result<RowChangeTarget, SQLError>;
fn committed_physical_row_successor(
&self,
table: &str,
doc_id: DocId,
) -> Result<PhysicalRowChangeTarget, SQLError>;
fn table_for_lock_hash(&self, table_hash: u64) -> Result<String, SQLError>;
}Expand description
Lock acquisition and committed-chain visibility within the caller’s transaction.
Required Methods§
fn lock_manager(&self) -> Arc<RowLockManager> ⓘ
fn lock_row( &self, table: &str, doc_id: DocId, strength: LockStrength, wait: LockWait, display_name: &str, ) -> Result<LockAcquire, SQLError>
fn uses_fixed_snapshot(&self) -> bool
fn committed_row_successor( &self, table: &str, doc_id: DocId, ) -> Result<RowChangeTarget, SQLError>
fn committed_physical_row_successor( &self, table: &str, doc_id: DocId, ) -> Result<PhysicalRowChangeTarget, SQLError>
fn table_for_lock_hash(&self, table_hash: u64) -> Result<String, SQLError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".