Skip to main content

StatementAnalysisScopes

Trait StatementAnalysisScopes 

Source
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§

Provided Methods§

Source

fn planning_control(&self) -> Result<OwnedProductionControl, SQLError>

Request ownership precedes analysis; optimizer catalog callbacks remain after successful analysis.

Source

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".

Implementors§