Skip to main content

CteBodyExecutor

Trait CteBodyExecutor 

Source
pub trait CteBodyExecutor<S: Clone>: Sync {
    // Required methods
    fn read_control(&self) -> Result<StorageReadControl, SQLError>;
    fn retained_query(
        &self,
        query: &QueryPlan,
        params: &[SQLParam],
        ctes: &CteScope<S>,
    ) -> Result<Option<Box<dyn PhysicalOperator>>, SQLError>;
    fn execute_query(
        &self,
        query: &QueryPlan,
        params: &[SQLParam],
        ctes: &mut CteScope<S>,
    ) -> Result<QueryOutput, SQLError>;
    fn execute_lateral_query(
        &self,
        query: &QueryPlan,
        outer: &OwnedPhysicalRow,
        params: &[SQLParam],
        ctes: &CteScope<S>,
    ) -> Result<QueryOutput, SQLError>;
    fn execute_command(
        &self,
        command: &CommandPlan,
        params: &[SQLParam],
        ctes: &CteScope<S>,
    ) -> Result<MutationOutput, SQLError>;
    fn fire_after_triggers(
        &self,
        queue: &AfterTriggerQueue,
    ) -> Result<(), SQLError>;
}

Required Methods§

Source

fn read_control(&self) -> Result<StorageReadControl, SQLError>

Retain the active query allowance and its original cancellation owner for CTE analysis and scheduling.

Source

fn retained_query( &self, query: &QueryPlan, params: &[SQLParam], ctes: &CteScope<S>, ) -> Result<Option<Box<dyn PhysicalOperator>>, SQLError>

Retain one read-only physical producer and its selected session inputs. A semantic materialization that cannot expose a pull operator returns None.

Source

fn execute_query( &self, query: &QueryPlan, params: &[SQLParam], ctes: &mut CteScope<S>, ) -> Result<QueryOutput, SQLError>

Source

fn execute_lateral_query( &self, query: &QueryPlan, outer: &OwnedPhysicalRow, params: &[SQLParam], ctes: &CteScope<S>, ) -> Result<QueryOutput, SQLError>

Source

fn execute_command( &self, command: &CommandPlan, params: &[SQLParam], ctes: &CteScope<S>, ) -> Result<MutationOutput, SQLError>

Source

fn fire_after_triggers(&self, queue: &AfterTriggerQueue) -> Result<(), SQLError>

Fire the AFTER events that the commands of a statement queued, once the statement has finished.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§