pub struct AfterTriggerQueue { /* private fields */ }Expand description
The queued AFTER events of one statement.
Implementations§
Source§impl AfterTriggerQueue
impl AfterTriggerQueue
Sourcepub fn fire_before_statement(
&self,
context: &TriggerContext<'_>,
statement: &StatementEvent,
) -> Result<()>
pub fn fire_before_statement( &self, context: &TriggerContext<'_>, statement: &StatementEvent, ) -> Result<()>
Fire the BEFORE STATEMENT triggers of statement unless the statement already fired them for its open state (before_stmt_triggers_fired).
Sourcepub fn queue_command(
&self,
context: &TriggerContext<'_>,
statements: &[StatementEvent],
rows: AfterRowEvents,
) -> Result<()>
pub fn queue_command( &self, context: &TriggerContext<'_>, statements: &[StatementEvent], rows: AfterRowEvents, ) -> Result<()>
Queue the AFTER events of one command: the events of its rows, whose images join the transition tables of the statement event they belong to, then an AFTER STATEMENT event for each of statements, which replaces the one an earlier command queued for the same state.
Sourcepub fn fire(&self, context: &TriggerContext<'_>) -> Result<()>
pub fn fire(&self, context: &TriggerContext<'_>) -> Result<()>
Fire the queued events in order, with the events that the referential actions among them queue as they run (afterTriggerInvokeEvents).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AfterTriggerQueue
impl !RefUnwindSafe for AfterTriggerQueue
impl !UnwindSafe for AfterTriggerQueue
impl Send for AfterTriggerQueue
impl Sync for AfterTriggerQueue
impl Unpin for AfterTriggerQueue
impl UnsafeUnpin for AfterTriggerQueue
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