Skip to main content

RowLockOperatorFactory

Trait RowLockOperatorFactory 

Source
pub trait RowLockOperatorFactory<S: Clone + 'static>: Sync {
    // Required method
    fn attach_lock_rows<'a>(
        &'a self,
        operator: Box<dyn PhysicalOperator + 'a>,
        statement: &QueryBlockPlan,
        params: &'a [SQLParam],
        scope: &CteScope<S>,
        max_rows: Option<u64>,
        recheck: Option<LockRowsRecheckInput<'_, S>>,
    ) -> Result<Box<dyn PhysicalOperator + 'a>, SQLError>;
}
Expand description

Attach the locking boundary using the caller’s relation and transaction lock services.

Required Methods§

Source

fn attach_lock_rows<'a>( &'a self, operator: Box<dyn PhysicalOperator + 'a>, statement: &QueryBlockPlan, params: &'a [SQLParam], scope: &CteScope<S>, max_rows: Option<u64>, recheck: Option<LockRowsRecheckInput<'_, S>>, ) -> Result<Box<dyn PhysicalOperator + 'a>, SQLError>

Accept ownership of the input, including closing it before returning a construction error. Successful construction transfers it to the result.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§