pub enum MutableExecutablePlan {
Query(MutableQueryPlan),
Command(MutableCommandPlan),
}Variants§
Query(MutableQueryPlan)
Command(MutableCommandPlan)
Implementations§
Source§impl MutableExecutablePlan
impl MutableExecutablePlan
Sourcepub fn mark_catalog_relations_bound(
self,
control: &ProductionControl<'_>,
) -> Result<Self, SQLError>
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.
Sourcepub fn replace_sources<'a>(
&mut self,
control: &ProductionControl<'_>,
replace: &'a mut (dyn FnMut(&SourcePlan) -> Result<Option<MutableSourcePlan>, SQLError> + 'a),
) -> Result<(), SQLError>
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
impl MutableExecutablePlan
Sourcepub fn transform_scalar_arenas(
self,
control: &ProductionControl<'_>,
transform: &mut ScalarArenaTransform<'_>,
) -> Result<Self, SQLError>
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
impl MutableExecutablePlan
Sourcepub fn transform_scalar_nodes(
self,
control: &ProductionControl<'_>,
transform: &mut ScalarNodeTransform<'_>,
) -> Result<Self, SQLError>
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
impl MutableExecutablePlan
Sourcepub fn transfer(self, control: &ProductionControl<'_>) -> Result<Self, SQLError>
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.
pub fn as_plan_ref(&self) -> PlanRef<'_>
pub fn reserved_bytes(&self) -> usize
Sourcepub fn finish(
self,
control: &ProductionControl<'_>,
) -> Result<OwnedExecutablePlan, SQLError>
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
impl MutableExecutablePlan
pub fn visit_scoped( self, control: &ProductionControl<'_>, visitor: &mut dyn OwnedScopedPlanVisitor, ) -> Result<Self, SQLError>
Source§impl MutableExecutablePlan
impl MutableExecutablePlan
Sourcepub fn map_queries_while(
self,
control: &ProductionControl<'_>,
visit: &mut (dyn FnMut(MutableQueryPlan) -> Result<(MutableQueryPlan, bool), SQLError> + '_),
) -> Result<Self, SQLError>
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
impl MutableExecutablePlan
pub fn normalize_window_definitions( self, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MutableExecutablePlan
impl !UnwindSafe for MutableExecutablePlan
impl Freeze for MutableExecutablePlan
impl Send for MutableExecutablePlan
impl Sync for MutableExecutablePlan
impl Unpin for MutableExecutablePlan
impl UnsafeUnpin for MutableExecutablePlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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