pub enum Stmt {
Show 25 variants AlterTable(QualifiedNameAlterTableBody), 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<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(QualifiedNameOption<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(QualifiedNameAlterTableBody)

Analyze(Option<QualifiedName>)

Attach

Fields

expr: Expr
db_name: Expr
key: Option<Expr>

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

Commit(Option<Name>)

CreateIndex

Fields

unique: bool
if_not_exists: bool
idx_name: QualifiedName
tbl_name: Name
columns: Vec<SortedColumn>
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
event: TriggerEvent
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
args: Option<String>

Delete

Fields

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

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>>
body: InsertBody
returning: Option<Vec<ResultColumn>>

Pragma(QualifiedNameOption<PragmaBody>)

Reindex

Fields

obj_name: Option<QualifiedName>

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>
returning: Option<Vec<ResultColumn>>
order_by: Option<Vec<SortedColumn>>
limit: Option<Limit>

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.