pub enum TriggerCmd<'bump> {
Update {
or_conflict: Option<ResolveType>,
tbl_name: QualifiedName<'bump>,
sets: &'bump [Set<'bump>],
from: Option<FromClause<'bump>>,
where_clause: Option<Expr<'bump>>,
},
Insert {
or_conflict: Option<ResolveType>,
tbl_name: QualifiedName<'bump>,
col_names: Option<DistinctNames<'bump>>,
select: &'bump Select<'bump>,
upsert: Option<&'bump Upsert<'bump>>,
},
Delete {
tbl_name: QualifiedName<'bump>,
where_clause: Option<Expr<'bump>>,
},
Select(&'bump Select<'bump>),
}Expand description
CREATE TRIGGER command
Variants§
Update
UPDATE
Fields
§
or_conflict: Option<ResolveType>OR
§
tbl_name: QualifiedName<'bump>table name
§
from: Option<FromClause<'bump>>FROM
Insert
INSERT
Fields
§
or_conflict: Option<ResolveType>OR
§
tbl_name: QualifiedName<'bump>table name
§
col_names: Option<DistinctNames<'bump>>COLUMNS
Delete
DELETE
Select(&'bump Select<'bump>)
SELECT
Trait Implementations§
Source§impl<'bump> Debug for TriggerCmd<'bump>
impl<'bump> Debug for TriggerCmd<'bump>
impl<'bump> Eq for TriggerCmd<'bump>
Source§impl<'bump> PartialEq for TriggerCmd<'bump>
impl<'bump> PartialEq for TriggerCmd<'bump>
Source§fn eq(&self, other: &TriggerCmd<'bump>) -> bool
fn eq(&self, other: &TriggerCmd<'bump>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'bump> StructuralPartialEq for TriggerCmd<'bump>
Auto Trait Implementations§
impl<'bump> !RefUnwindSafe for TriggerCmd<'bump>
impl<'bump> !Send for TriggerCmd<'bump>
impl<'bump> !Sync for TriggerCmd<'bump>
impl<'bump> !UnwindSafe for TriggerCmd<'bump>
impl<'bump> Freeze for TriggerCmd<'bump>
impl<'bump> Unpin for TriggerCmd<'bump>
impl<'bump> UnsafeUnpin for TriggerCmd<'bump>
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<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.