Enum sqlite3_parser::ast::TriggerCmd
source · 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: Select,
upsert: Option<Upsert>,
returning: Option<Vec<ResultColumn>>,
},
Delete {
tbl_name: Name,
where_clause: Option<Expr>,
},
Select(Select),
}
Expand description
CREATE TRIGGER
command
Variants§
Update
UPDATE
Insert
INSERT
Fields
§
or_conflict: Option<ResolveType>
OR
§
col_names: Option<DistinctNames>
COLUMNS
§
returning: Option<Vec<ResultColumn>>
RETURNING
Delete
DELETE
Select(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§fn eq(&self, other: &TriggerCmd) -> bool
fn eq(&self, other: &TriggerCmd) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.