pub enum TriggerCmd {
Update {
or_conflict: Option<ResolveType>,
tbl_name: Name,
sets: Vec<Set>,
from: Option<FromClause>,
where_clause: Option<Expr>,
},
Insert {
or_conflict: Option<ResolveType>,
tbl_name: Name,
col_names: Option<DistinctNames>,
select: Box<Select>,
upsert: Option<Box<Upsert>>,
},
Delete {
tbl_name: Name,
where_clause: Option<Expr>,
},
Select(Box<Select>),
}
Expand description
CREATE TRIGGER
command
Variants§
Update
UPDATE
Insert
INSERT
Delete
DELETE
Select(Box<Select>)
SELECT
Trait Implementations§
Source§impl Clone for TriggerCmd
impl Clone for TriggerCmd
Source§fn clone(&self) -> TriggerCmd
fn clone(&self) -> TriggerCmd
Returns a copy of the value. Read more
1.0.0 · 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 TriggerCmd
impl Debug for TriggerCmd
Source§impl PartialEq for TriggerCmd
impl PartialEq for TriggerCmd
Source§impl ToTokens for TriggerCmd
impl ToTokens for TriggerCmd
impl Eq for TriggerCmd
impl StructuralPartialEq for TriggerCmd
Auto Trait Implementations§
impl Freeze for TriggerCmd
impl RefUnwindSafe for TriggerCmd
impl Send for TriggerCmd
impl Sync for TriggerCmd
impl Unpin for TriggerCmd
impl UnwindSafe for TriggerCmd
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.