pub trait StatementAnalysisScopes {
// Required method
fn with_scope(
&self,
analyze: StatementAnalysisOperation<'_>,
) -> Result<(), SQLError>;
// Provided methods
fn planning_control(&self) -> Result<OwnedProductionControl, SQLError> { ... }
fn with_controlled_scope(
&self,
control: &ProductionControl<'_>,
analyze: ControlledStatementAnalysisOperation<'_>,
) -> Result<(), SQLError> { ... }
}Expand description
Retain a fresh catalog, namespace and transition scope for each statement analysis.
Required Methods§
fn with_scope( &self, analyze: StatementAnalysisOperation<'_>, ) -> Result<(), SQLError>
Provided Methods§
Sourcefn planning_control(&self) -> Result<OwnedProductionControl, SQLError>
fn planning_control(&self) -> Result<OwnedProductionControl, SQLError>
Request ownership precedes analysis; optimizer catalog callbacks remain after successful analysis.
Sourcefn with_controlled_scope(
&self,
control: &ProductionControl<'_>,
analyze: ControlledStatementAnalysisOperation<'_>,
) -> Result<(), SQLError>
fn with_controlled_scope( &self, control: &ProductionControl<'_>, analyze: ControlledStatementAnalysisOperation<'_>, ) -> Result<(), SQLError>
Native scopes construct their retained inputs under the caller’s control; external factories preserve their scope callback.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".