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§
fn optimize(&self, plan: &QueryPlan) -> Result<OwnedQueryPlan, SQLError>
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".