pub enum BoundTriggerStatement {
Insert(Box<BoundInsert>),
Update(Box<BoundUpdate>),
Delete(Box<BoundDelete>),
Select(Box<BoundSelect>),
}Expand description
One statement of a trigger body, bound.
The four the grammar allows and no more. A trigger body is not a general statement list: it cannot create objects, cannot open transactions, and cannot return rows to the caller, so a variant for anything else would be a shape the binder is required to refuse.
Variants§
Insert(Box<BoundInsert>)
INSERT.
Update(Box<BoundUpdate>)
UPDATE.
Delete(Box<BoundDelete>)
DELETE.
Select(Box<BoundSelect>)
SELECT, which a body runs for its side effects - in practice for the
RAISE() inside it.
Trait Implementations§
Source§impl Clone for BoundTriggerStatement
impl Clone for BoundTriggerStatement
Source§impl Debug for BoundTriggerStatement
impl Debug for BoundTriggerStatement
Source§impl PartialEq for BoundTriggerStatement
impl PartialEq for BoundTriggerStatement
impl StructuralPartialEq for BoundTriggerStatement
Auto Trait Implementations§
impl !Send for BoundTriggerStatement
impl !Sync for BoundTriggerStatement
impl Freeze for BoundTriggerStatement
impl RefUnwindSafe for BoundTriggerStatement
impl Unpin for BoundTriggerStatement
impl UnsafeUnpin for BoundTriggerStatement
impl UnwindSafe for BoundTriggerStatement
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