pub trait QueryExpressionFactory<S: Clone + 'static>: Sync {
// Required methods
fn bind_scope(&self, scope: CteScope<S>) -> Arc<dyn SetFunctionRuntime + '_> ⓘ;
fn optimize_catalog_scalar(
&self,
expression: &mut ScalarExpr,
) -> Result<(), SQLError>;
fn prepare_predicate<'a>(
&'a self,
expression: &ScalarExpr,
params: &'a [SQLParam],
scope: &CteScope<S>,
) -> Result<Option<SharedRowPredicate<'a>>, SQLError>;
}Expand description
Bind scoped expression services without exposing the owning session or storage state.
Required Methods§
fn bind_scope(&self, scope: CteScope<S>) -> Arc<dyn SetFunctionRuntime + '_> ⓘ
Sourcefn optimize_catalog_scalar(
&self,
expression: &mut ScalarExpr,
) -> Result<(), SQLError>
fn optimize_catalog_scalar( &self, expression: &mut ScalarExpr, ) -> Result<(), SQLError>
Apply the owning planner to a validated schema/procedural execution copy.
fn prepare_predicate<'a>( &'a self, expression: &ScalarExpr, params: &'a [SQLParam], scope: &CteScope<S>, ) -> Result<Option<SharedRowPredicate<'a>>, SQLError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".