Enum Stmt

Source
pub enum Stmt {
Show 25 variants AlterTable(QualifiedName, AlterTableBody), Analyze(Option<QualifiedName>), Attach { expr: Expr, db_name: Expr, key: Option<Expr>, }, Begin(Option<TransactionType>, Option<Name>), Commit(Option<Name>), CreateIndex { unique: bool, if_not_exists: bool, idx_name: QualifiedName, tbl_name: Name, columns: Vec<SortedColumn>, where_clause: Option<Expr>, }, CreateTable { temporary: bool, if_not_exists: bool, tbl_name: QualifiedName, body: CreateTableBody, }, CreateTrigger { temporary: bool, if_not_exists: bool, trigger_name: QualifiedName, time: Option<TriggerTime>, event: TriggerEvent, tbl_name: QualifiedName, for_each_row: bool, when_clause: Option<Expr>, commands: Vec<TriggerCmd>, }, CreateView { temporary: bool, if_not_exists: bool, view_name: QualifiedName, columns: Option<Vec<IndexedColumn>>, select: Select, }, CreateVirtualTable { if_not_exists: bool, tbl_name: QualifiedName, module_name: Name, args: Option<Vec<String>>, }, Delete { with: Option<With>, tbl_name: QualifiedName, indexed: Option<Indexed>, where_clause: Option<Expr>, returning: Option<Vec<ResultColumn>>, order_by: Option<Vec<SortedColumn>>, limit: Option<Limit>, }, Detach(Expr), DropIndex { if_exists: bool, idx_name: QualifiedName, }, DropTable { if_exists: bool, tbl_name: QualifiedName, }, DropTrigger { if_exists: bool, trigger_name: QualifiedName, }, DropView { if_exists: bool, view_name: QualifiedName, }, Insert { with: Option<With>, or_conflict: Option<ResolveType>, tbl_name: QualifiedName, columns: Option<Vec<Name>>, body: InsertBody, returning: Option<Vec<ResultColumn>>, }, Pragma(QualifiedName, Option<PragmaBody>), Reindex { obj_name: Option<QualifiedName>, }, Release(Name), Rollback { tx_name: Option<Name>, savepoint_name: Option<Name>, }, Savepoint(Name), Select(Select), Update { with: Option<With>, or_conflict: Option<ResolveType>, tbl_name: QualifiedName, indexed: Option<Indexed>, sets: Vec<Set>, from: Option<FromClause>, where_clause: Option<Expr>, returning: Option<Vec<ResultColumn>>, order_by: Option<Vec<SortedColumn>>, limit: Option<Limit>, }, Vacuum(Option<Name>, Option<Expr>),
}

Variants§

§

AlterTable(QualifiedName, AlterTableBody)

§

Analyze(Option<QualifiedName>)

§

Attach

Fields

§expr: Expr
§db_name: Expr
§

Begin(Option<TransactionType>, Option<Name>)

§

Commit(Option<Name>)

§

CreateIndex

Fields

§unique: bool
§if_not_exists: bool
§idx_name: QualifiedName
§tbl_name: Name
§where_clause: Option<Expr>
§

CreateTable

Fields

§temporary: bool
§if_not_exists: bool
§tbl_name: QualifiedName
§

CreateTrigger

Fields

§temporary: bool
§if_not_exists: bool
§trigger_name: QualifiedName
§tbl_name: QualifiedName
§for_each_row: bool
§when_clause: Option<Expr>
§commands: Vec<TriggerCmd>
§

CreateView

Fields

§temporary: bool
§if_not_exists: bool
§view_name: QualifiedName
§select: Select
§

CreateVirtualTable

Fields

§if_not_exists: bool
§tbl_name: QualifiedName
§module_name: Name
§

Delete

Fields

§with: Option<With>
§tbl_name: QualifiedName
§indexed: Option<Indexed>
§where_clause: Option<Expr>
§limit: Option<Limit>
§

Detach(Expr)

§

DropIndex

Fields

§if_exists: bool
§idx_name: QualifiedName
§

DropTable

Fields

§if_exists: bool
§tbl_name: QualifiedName
§

DropTrigger

Fields

§if_exists: bool
§trigger_name: QualifiedName
§

DropView

Fields

§if_exists: bool
§view_name: QualifiedName
§

Insert

Fields

§with: Option<With>
§or_conflict: Option<ResolveType>
§tbl_name: QualifiedName
§columns: Option<Vec<Name>>
§

Pragma(QualifiedName, Option<PragmaBody>)

§

Reindex

Fields

§

Release(Name)

§

Rollback

Fields

§tx_name: Option<Name>
§savepoint_name: Option<Name>
§

Savepoint(Name)

§

Select(Select)

§

Update

Fields

§with: Option<With>
§or_conflict: Option<ResolveType>
§tbl_name: QualifiedName
§indexed: Option<Indexed>
§sets: Vec<Set>
§where_clause: Option<Expr>
§limit: Option<Limit>
§

Vacuum(Option<Name>, Option<Expr>)

Trait Implementations§

Source§

impl Clone for Stmt

Source§

fn clone(&self) -> Stmt

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Stmt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Stmt

Source§

fn eq(&self, other: &Stmt) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ToTokens for Stmt

Source§

fn to_tokens<S: TokenStream>(&self, s: &mut S) -> Result<(), S::Error>

Source§

fn to_fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl Eq for Stmt

Source§

impl StructuralPartialEq for Stmt

Auto Trait Implementations§

§

impl Freeze for Stmt

§

impl RefUnwindSafe for Stmt

§

impl Send for Stmt

§

impl Sync for Stmt

§

impl Unpin for Stmt

§

impl UnwindSafe for Stmt

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.