pub struct StatementCommands { /* private fields */ }Expand description
The commands of one statement and what they leave for its end, shared by every scope of the statement. PostgreSQL runs a statement under one command id and one AFTER trigger query level: the AFTER events of the statement’s commands, its data-modifying WITH items and the referential actions those take among them, wait in one queue until the statement has finished (AfterTriggerEndQuery), and a row that one of its commands wrote is TM_SelfModified to the others.
Implementations§
Source§impl StatementCommands
impl StatementCommands
pub fn modifies_with(&self) -> bool
pub fn after_triggers(&self) -> &AfterTriggerQueue
pub fn note_written( &self, rows: impl IntoIterator<Item = PhysicalDocumentIdentity>, )
Sourcepub fn wrote(&self, row: &PhysicalDocumentIdentity) -> bool
pub fn wrote(&self, row: &PhysicalDocumentIdentity) -> bool
Whether one of the statement’s commands wrote row, which the statement’s later commands find in their snapshot as a row the statement already modified.
pub fn note_triggered( &self, rows: impl IntoIterator<Item = PhysicalDocumentIdentity>, )
Sourcepub fn triggered_write(&self, row: &PhysicalDocumentIdentity) -> bool
pub fn triggered_write(&self, row: &PhysicalDocumentIdentity) -> bool
Whether a statement that this statement started wrote row, which PostgreSQL finds modified by a later command than the statement’s own (TM_SelfModified with another cmax).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StatementCommands
impl !RefUnwindSafe for StatementCommands
impl !UnwindSafe for StatementCommands
impl Send for StatementCommands
impl Sync for StatementCommands
impl Unpin for StatementCommands
impl UnsafeUnpin for StatementCommands
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
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> ⓘ
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> ⓘ
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