pub struct ExecutionQueryBlock<'a>(/* private fields */);Implementations§
Source§impl<'a> ExecutionQueryBlock<'a>
impl<'a> ExecutionQueryBlock<'a>
pub fn borrowed(block: &'a QueryBlockPlan) -> Self
pub fn bind_grouping_names( self, routines: &dyn RoutineResolution, schema: &RowSchema, outer: Option<&RowSchema>, params: &[SQLParam], control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
pub fn resolve_outer_rewrites( self, schema: &RowSchema, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
Methods from Deref<Target = QueryBlockPlan>§
Sourcepub fn clone_with_control(
&self,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn clone_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Retain an immutable physical recheck input under the invoking request’s allowance.
Sourcepub fn copy_for_rewrite(
&self,
control: &ProductionControl<'_>,
) -> Result<MutableQueryPlan, SQLError>
pub fn copy_for_rewrite( &self, control: &ProductionControl<'_>, ) -> Result<MutableQueryPlan, SQLError>
Construct an independent mutable query root from a retained block, admitting every scalar and structural destination before copying. The enclosing query has no CTE or relation flags until its caller installs the root in its original scope.
Sourcepub fn compute_kind(&self, aggregates: &dyn AggregateClassifier) -> ComputePlan
pub fn compute_kind(&self, aggregates: &dyn AggregateClassifier) -> ComputePlan
Select the computation before output-demand rewrites remove unobserved aggregate values.
pub fn compute_kind_with_control( &self, aggregates: &dyn AggregateClassifier, control: &ProductionControl<'_>, ) -> Result<ComputePlan, SQLError>
Sourcepub fn is_single_expression(&self) -> bool
pub fn is_single_expression(&self) -> bool
One scalar SELECT with no relational clauses or subplans. The caller must also reject set-returning routines using its selected catalog.
Sourcepub fn expressions(&self) -> Vec<&ScalarExpr>
pub fn expressions(&self) -> Vec<&ScalarExpr>
Expression nodes evaluated while executing this query block. Query
bodies under FROM (SELECT ...) are excluded because their child plan
installs its own expression scope when it executes.
Sourcepub fn visit_expressions<'a>(&'a self, visit: &mut dyn FnMut(&'a ScalarExpr))
pub fn visit_expressions<'a>(&'a self, visit: &mut dyn FnMut(&'a ScalarExpr))
Borrow direct source roots followed by this query’s own roots. Derived-query bodies and scalar-query arenas keep their separate namespaces.
Sourcepub fn try_visit_expressions<'a, E>(
&'a self,
visit: &mut dyn FnMut(&'a ScalarExpr) -> Result<bool, E>,
) -> Result<bool, E>
pub fn try_visit_expressions<'a, E>( &'a self, visit: &mut dyn FnMut(&'a ScalarExpr) -> Result<bool, E>, ) -> Result<bool, E>
Visit direct expression roots in initialization order. Return false when the callback stops successfully; an error also stops before the next root.
Sourcepub fn query_expressions(&self) -> impl Iterator<Item = &ScalarExpr>
pub fn query_expressions(&self) -> impl Iterator<Item = &ScalarExpr>
Expressions at this query level, excluding FROM-item inputs and join conditions, which have their own namespaces.
Trait Implementations§
Source§impl AsRef<QueryBlockPlan> for ExecutionQueryBlock<'_>
impl AsRef<QueryBlockPlan> for ExecutionQueryBlock<'_>
Source§fn as_ref(&self) -> &QueryBlockPlan
fn as_ref(&self) -> &QueryBlockPlan
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExecutionQueryBlock<'a>
impl<'a> !UnwindSafe for ExecutionQueryBlock<'a>
impl<'a> Freeze for ExecutionQueryBlock<'a>
impl<'a> Send for ExecutionQueryBlock<'a>
impl<'a> Sync for ExecutionQueryBlock<'a>
impl<'a> Unpin for ExecutionQueryBlock<'a>
impl<'a> UnsafeUnpin for ExecutionQueryBlock<'a>
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