pub struct SharedExecutablePlan(/* private fields */);Expand description
Shared immutable execution storage. Keeping the Arc private prevents unwrapping its payload while leaving the shared allocation’s reservation attached to an unboxed value.
Implementations§
pub fn strong_count(&self) -> usize
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn reserved_bytes(&self) -> usize
Methods from Deref<Target = UnifiedPlan>§
Sourcepub fn clone_with_control(
&self,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn clone_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Copy complete analyzed syntax, including utility commands, admitting each owned destination before construction. Transient bindings and shared immutable input owners preserve their original identities.
Sourcepub fn clone_executable_with_control(
&self,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn clone_executable_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Copy a query or INSERT/UPDATE/DELETE/MERGE executable. Utility commands have separate preparation and lifetime owners and are rejected by this executable-only operation.
Sourcepub fn planning_memory(
&self,
control: &ProductionControl<'_>,
) -> Result<ExplainPlanningMemory, SQLError>
pub fn planning_memory( &self, control: &ProductionControl<'_>, ) -> Result<ExplainPlanningMemory, SQLError>
Observe initialized bytes and exposed allocation capacity before execution. Shared literal owners are counted once without decoding. Immutable analysis/catalog descriptors, opaque dependency storage and allocator bookkeeping remain outside the executable’s storage. This neither evaluates expressions nor reserves the already-produced plan again.
pub fn copy_for_rewrite( &self, control: &ProductionControl<'_>, ) -> Result<MutableExecutablePlan, SQLError>
pub fn visit_sources(&self, visit: &mut dyn FnMut(&SourcePlan))
pub fn name(&self) -> &'static str
Sourcepub fn visit_scalar_expressions(&self, visit: &mut dyn FnMut(&ScalarExpr))
pub fn visit_scalar_expressions(&self, visit: &mut dyn FnMut(&ScalarExpr))
Visit every scalar expression this plan owns, each root once, including those of its CTEs, relational sources, scalar subqueries and command inputs. The nested nodes of a root are reached through ScalarExpr::visit.
Sourcepub fn try_visit_scalar_expressions<'a, E>(
&'a self,
visit: &mut dyn FnMut(&'a ScalarExpr) -> Result<(), E>,
) -> Result<(), E>
pub fn try_visit_scalar_expressions<'a, E>( &'a self, visit: &mut dyn FnMut(&'a ScalarExpr) -> Result<(), E>, ) -> Result<(), E>
Stop at the first callback error, without copying syntax or visiting later inputs.
Trait Implementations§
Source§fn as_ref(&self) -> &UnifiedPlan
fn as_ref(&self) -> &UnifiedPlan
Source§fn from(plan: Arc<UnifiedPlan>) -> Self
fn from(plan: Arc<UnifiedPlan>) -> Self
Source§fn from(plan: UnifiedPlan) -> Self
fn from(plan: UnifiedPlan) -> Self
Share an ordinary input without claiming admission for allocations its constructors did not reserve.
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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