Skip to main content

RetainedRuleInput

Struct RetainedRuleInput 

Source
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>

Source

pub fn new(columns: &'a BTreeMap<String, RuleColumnMetadata>) -> Self

Source

pub fn relation(&self) -> InternalRelationId

Source

pub fn schema(&self) -> &RowSchema

Source

pub fn admitted_types(&self) -> Arc<[Option<String>]> ⓘ

The first slots replace typed constants; whole OLD/NEW records and the ordinal replace untyped constants.

Source

pub fn row_values( &self, row: &dyn RuleRowValues, row_index: usize, ) -> Result<Vec<Value>, SQLError>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.