pub struct OwnedMutationRuleInput {
pub resolver: OwnedRuleQueryResolver,
pub source_context: Produced<Vec<Expr>>,
pub source_context_schema: Option<RowSchema>,
/* private fields */
}Fields§
§resolver: OwnedRuleQueryResolver§source_context: Produced<Vec<Expr>>§source_context_schema: Option<RowSchema>Implementations§
Source§impl OwnedMutationRuleInput
impl OwnedMutationRuleInput
Sourcepub fn qualify_original(
context: RuleAnalysisContext<'_>,
statement: MutableCommandPlan,
binding: CatalogRoutineAnalysisContext<'_>,
subject: &RoleReference,
control: &ProductionControl<'_>,
) -> Result<Option<MutableCommandPlan>, SQLError>
pub fn qualify_original( context: RuleAnalysisContext<'_>, statement: MutableCommandPlan, binding: CatalogRoutineAnalysisContext<'_>, subject: &RoleReference, control: &ProductionControl<'_>, ) -> Result<Option<MutableCommandPlan>, SQLError>
A suppressing rule retires the original command before resolving its assignments. Conditional rules append one private predicate arena to the surviving command.
Source§impl OwnedMutationRuleInput
impl OwnedMutationRuleInput
pub fn bind( context: RuleAnalysisContext<'_>, correlation: CorrelationContext<'_>, statement: RuleMutation<'_>, schemas: (&RowSchema, Option<&RowSchema>), references_event: bool, input_subject: &RoleReference, rule_subject: &RoleReference, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
pub fn finish( self, condition: Option<MutableExpressionPlan>, control: &ProductionControl<'_>, ) -> Result<OwnedRuleQueryInput, SQLError>
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedMutationRuleInput
impl !UnwindSafe for OwnedMutationRuleInput
impl Freeze for OwnedMutationRuleInput
impl Send for OwnedMutationRuleInput
impl Sync for OwnedMutationRuleInput
impl Unpin for OwnedMutationRuleInput
impl UnsafeUnpin for OwnedMutationRuleInput
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