Skip to main content

QueryRowLockSession

Trait QueryRowLockSession 

Source
pub trait QueryRowLockSession:
    RowLockSession
    + RelationLockSession
    + Sync {
    // Required methods
    fn lock_relation(
        &self,
        table: &str,
        mode: RelationLockMode,
    ) -> Result<(), SQLError>;
    fn rollback_row_lock_acquisition(&self, acquisition: RowLockAcquisition);
    fn row_changed_in_open_transaction(
        &self,
        table: &str,
        doc_id: DocId,
    ) -> Result<bool, SQLError>;
    fn row_lock_change_requires_recheck(&self) -> Result<bool, SQLError>;
    fn current_transaction_is_read_only(&self) -> bool;
    fn statement_row_lock_cache(
        &self,
    ) -> Result<Arc<RowLockRetryCache>, SQLError>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§