pub enum RuleMutation<'a> {
Update(&'a UpdatePlan),
Delete(&'a DeletePlan),
}Variants§
Update(&'a UpdatePlan)
Delete(&'a DeletePlan)
Implementations§
Source§impl<'a> RuleMutation<'a>
impl<'a> RuleMutation<'a>
pub fn table(self) -> &'a str
pub fn event(self) -> RuleEvent
pub fn target_qualifier(self) -> &'a str
pub fn source(self) -> Option<&'a SourcePlan>
pub fn predicate(self) -> Option<&'a ScalarExpr>
pub fn subqueries(self) -> &'a [QueryPlan]
pub fn ctes(self) -> &'a [CtePlan]
pub fn returning(self) -> &'a [ProjectionPlan]
pub fn returning_aliases(self) -> &'a ReturningAliases
pub fn target_source(self) -> SourcePlan
Sourcepub fn original_condition(
self,
context: RuleAnalysisContext<'_>,
binding: CatalogRoutineAnalysisContext<'_>,
subject: &RoleReference,
) -> Result<Option<ExpressionPlan>, SQLError>
pub fn original_condition( self, context: RuleAnalysisContext<'_>, binding: CatalogRoutineAnalysisContext<'_>, subject: &RoleReference, ) -> Result<Option<ExpressionPlan>, SQLError>
Each conditional INSTEAD rule contributes its own unevaluated negative qualification to the original command.
Trait Implementations§
Source§impl<'a> Clone for RuleMutation<'a>
impl<'a> Clone for RuleMutation<'a>
impl<'a> Copy for RuleMutation<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RuleMutation<'a>
impl<'a> !UnwindSafe for RuleMutation<'a>
impl<'a> Freeze for RuleMutation<'a>
impl<'a> Send for RuleMutation<'a>
impl<'a> Sync for RuleMutation<'a>
impl<'a> Unpin for RuleMutation<'a>
impl<'a> UnsafeUnpin for RuleMutation<'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
Mutably borrows from an owned value. Read more
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> ⓘ
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