Skip to main content

MutableExecutablePlan

Enum MutableExecutablePlan 

Source
pub enum MutableExecutablePlan {
    Query(MutableQueryPlan),
    Command(MutableCommandPlan),
}

Variants§

Implementations§

Source§

impl MutableExecutablePlan

Source

pub fn mark_catalog_relations_bound( self, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>

Catalog statement inputs retain their bound identities. CTE mutation targets are bound as well; the enclosing action target keeps its independent binding decision.

Source

pub fn replace_sources<'a>( &mut self, control: &ProductionControl<'_>, replace: &'a mut (dyn FnMut(&SourcePlan) -> Result<Option<MutableSourcePlan>, SQLError> + 'a), ) -> Result<(), SQLError>

Select independently owned replacements while borrowing original sources in SQL source order. Replacement payloads and constructor records are installed together before visiting descendants.

Source§

impl MutableExecutablePlan

Source

pub fn transform_scalar_arenas( self, control: &ProductionControl<'_>, transform: &mut ScalarArenaTransform<'_>, ) -> Result<Self, SQLError>

Rewrite existing nodes at their analysis addresses while lending the node’s own query arena. Every nested arena is completed before its parent, and copies added by a callback are already analyzed occurrences.

Source§

impl MutableExecutablePlan

Source

pub fn transform_scalar_nodes( self, control: &ProductionControl<'_>, transform: &mut ScalarNodeTransform<'_>, ) -> Result<Self, SQLError>

Transform scalar nodes at their original analysis identities, with children before parents and the same query/command order as immutable plan inspection.

Source§

impl MutableExecutablePlan

Source

pub fn transfer(self, control: &ProductionControl<'_>) -> Result<Self, SQLError>

Transfer a retained native executable through another entry point using the same allowance and its current cancellation tokens.

Source

pub fn as_plan_ref(&self) -> PlanRef<'_>

Source

pub fn reserved_bytes(&self) -> usize

Source

pub fn finish( self, control: &ProductionControl<'_>, ) -> Result<OwnedExecutablePlan, SQLError>

Admit the final statement box and transfer only surviving constructor leases into immutable execution storage.

Source§

impl MutableExecutablePlan

Source

pub fn visit_scoped( self, control: &ProductionControl<'_>, visitor: &mut dyn OwnedScopedPlanVisitor, ) -> Result<Self, SQLError>

Source§

impl MutableExecutablePlan

Source

pub fn map_queries_while( self, control: &ProductionControl<'_>, visit: &mut (dyn FnMut(MutableQueryPlan) -> Result<(MutableQueryPlan, bool), SQLError> + '_), ) -> Result<Self, SQLError>

Visit query owners in pre-order. The callback’s boolean selects whether to recurse into the returned query’s owned children.

Source§

impl MutableExecutablePlan

Source

pub fn normalize_window_definitions( self, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>

Trait Implementations§

Source§

impl Debug for MutableExecutablePlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.