pub struct RetainedRuleInput<'a> { /* private fields */ }Expand description
Describe OLD/NEW input once, materialize one admitted event at a time and bind one set-oriented action to the executor’s retained rows.
Implementations§
Source§impl<'a> RetainedRuleInput<'a>
impl<'a> RetainedRuleInput<'a>
pub fn new(columns: &'a BTreeMap<String, RuleColumnMetadata>) -> Self
pub fn relation(&self) -> InternalRelationId
pub fn schema(&self) -> &RowSchema
Sourcepub fn admitted_types(&self) -> Arc<[Option<String>]> ⓘ
pub fn admitted_types(&self) -> Arc<[Option<String>]> ⓘ
The first slots replace typed constants; whole OLD/NEW records and the ordinal replace untyped constants.
pub fn row_values( &self, row: &dyn RuleRowValues, row_index: usize, ) -> Result<Vec<Value>, SQLError>
pub fn bind_action( self, source: RetainedRowSource, bind_action: &(dyn Fn(&mut dyn VariableResolver) -> Result<Statement, SQLError> + '_), ) -> Result<BoundSetOrientedAction, SQLError>
Auto Trait Implementations§
impl<'a> Freeze for RetainedRuleInput<'a>
impl<'a> RefUnwindSafe for RetainedRuleInput<'a>
impl<'a> Send for RetainedRuleInput<'a>
impl<'a> Sync for RetainedRuleInput<'a>
impl<'a> Unpin for RetainedRuleInput<'a>
impl<'a> UnsafeUnpin for RetainedRuleInput<'a>
impl<'a> UnwindSafe for RetainedRuleInput<'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
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