pub enum RuleAction {
Stored(Box<Statement>),
Rewritten(UnifiedPlan),
Owned(MutableExecutablePlan),
}Expand description
An action can borrow a native query tree without converting its rows into constants.
Variants§
Implementations§
Source§impl RuleAction
impl RuleAction
Sourcepub fn bind_with_control(
context: RuleAnalysisContext<'_>,
aggregates: &dyn AggregateClassifier,
statement: &BoundRuleStatement,
input: Option<OwnedRuleQueryInput>,
control: &ProductionControl<'_>,
) -> Result<Self, SQLError>
pub fn bind_with_control( context: RuleAnalysisContext<'_>, aggregates: &dyn AggregateClassifier, statement: &BoundRuleStatement, input: Option<OwnedRuleQueryInput>, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
Lower an already bound statement and attach independently owned event inputs under their original request allowance.
Source§impl RuleAction
impl RuleAction
Sourcepub fn bind(
context: RuleAnalysisContext<'_>,
aggregates: &dyn AggregateClassifier,
statement: Statement,
input: Option<RuleQueryInput>,
) -> Result<Self, SQLError>
pub fn bind( context: RuleAnalysisContext<'_>, aggregates: &dyn AggregateClassifier, statement: Statement, input: Option<RuleQueryInput>, ) -> Result<Self, SQLError>
Bind native inputs with the rule’s catalog metadata before capturing execution state.
pub fn lower_with_control( self, aggregates: &dyn AggregateClassifier, control: &ProductionControl<'_>, ) -> Result<MutableExecutablePlan, SQLError>
pub fn lower( self, aggregates: &dyn AggregateClassifier, ) -> Result<UnifiedPlan, SQLError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RuleAction
impl !UnwindSafe for RuleAction
impl Freeze for RuleAction
impl Send for RuleAction
impl Sync for RuleAction
impl Unpin for RuleAction
impl UnsafeUnpin for RuleAction
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
Mutably borrows from an owned value. Read more
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> ⓘ
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 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> ⓘ
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