pub struct CreateTrigger {
pub temporary: bool,
pub if_not_exists: bool,
pub trigger_name: QualifiedName,
pub time: Option<TriggerTime>,
pub event: TriggerEvent,
pub tbl_name: QualifiedName,
pub for_each_row: bool,
pub when_clause: Option<Expr>,
pub commands: Vec<TriggerCmd>,
}Expand description
`CREATE TRIGGER
Fields§
§temporary: boolTEMPORARY
if_not_exists: boolIF NOT EXISTS
trigger_name: QualifiedNametrigger name
time: Option<TriggerTime>BEFORE/AFTER/INSTEAD OF
event: TriggerEventDELETE/INSERT/UPDATE
tbl_name: QualifiedNametable name
for_each_row: boolFOR EACH ROW
when_clause: Option<Expr>WHEN
commands: Vec<TriggerCmd>statements
Trait Implementations§
Source§impl Clone for CreateTrigger
impl Clone for CreateTrigger
Source§fn clone(&self) -> CreateTrigger
fn clone(&self) -> CreateTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateTrigger
impl Debug for CreateTrigger
impl Eq for CreateTrigger
Source§impl PartialEq for CreateTrigger
impl PartialEq for CreateTrigger
Source§fn eq(&self, other: &CreateTrigger) -> bool
fn eq(&self, other: &CreateTrigger) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateTrigger
Source§impl ToSqlString for CreateTrigger
impl ToSqlString for CreateTrigger
Source§fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String
fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String
Convert the given value to String
Auto Trait Implementations§
impl Freeze for CreateTrigger
impl RefUnwindSafe for CreateTrigger
impl Send for CreateTrigger
impl Sync for CreateTrigger
impl Unpin for CreateTrigger
impl UnsafeUnpin for CreateTrigger
impl UnwindSafe for CreateTrigger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.