Skip to main content

PhysicalExplainPlanning

Trait PhysicalExplainPlanning 

Source
pub trait PhysicalExplainPlanning: Sync {
    // Required methods
    fn plan_explained_statement(
        &self,
        body: PlanRef<'_>,
    ) -> Result<OwnedExecutablePlan, SQLError>;
    fn explained_plan_estimates(
        &self,
        body: &UnifiedPlan,
        params: &[SQLParam],
        control: &ProductionControl<'_>,
    ) -> Result<Produced<Vec<ExplainNodeEstimate>>, SQLError>;
    fn physical_explain_plan(
        &self,
        body: &UnifiedPlan,
        params: &[SQLParam],
        costs: bool,
        control: &ProductionControl<'_>,
    ) -> Result<Produced<ExplainPhysicalPlan>, SQLError>;
}
Expand description

Capture physical facts before an optional execution without invoking the explained query.

Required Methods§

Source

fn plan_explained_statement( &self, body: PlanRef<'_>, ) -> Result<OwnedExecutablePlan, SQLError>

Optimize the already analyzed body only after the command has interpreted its options.

Source

fn explained_plan_estimates( &self, body: &UnifiedPlan, params: &[SQLParam], control: &ProductionControl<'_>, ) -> Result<Produced<Vec<ExplainNodeEstimate>>, SQLError>

Source

fn physical_explain_plan( &self, body: &UnifiedPlan, params: &[SQLParam], costs: bool, control: &ProductionControl<'_>, ) -> Result<Produced<ExplainPhysicalPlan>, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§