Skip to main content

TableAsQuerySource

Trait TableAsQuerySource 

Source
pub trait TableAsQuerySource {
    // Required methods
    fn optimize(&self, plan: &QueryPlan) -> Result<OwnedQueryPlan, SQLError>;
    fn execute(
        &self,
        plan: &QueryPlan,
        params: &[SQLParam],
        measurement: Option<&QueryMeasurement>,
    ) -> Result<SQLResult, SQLError>;
}
Expand description

Optimize and execute at the call boundary so writer promotion cannot leave a stale query generation.

Required Methods§

Source

fn optimize(&self, plan: &QueryPlan) -> Result<OwnedQueryPlan, SQLError>

Source

fn execute( &self, plan: &QueryPlan, params: &[SQLParam], measurement: Option<&QueryMeasurement>, ) -> Result<SQLResult, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§