pub enum Stmt {
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<Expr>>,
},
Delete {
with: Option<With>,
tbl_name: QualifiedName,
indexed: Option<Indexed>,
where_clause: Option<Expr>,
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,
},
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>,
where_clause: Option<Expr>,
order_by: Option<Vec<SortedColumn>>,
limit: Option<Limit>,
},
Vacuum(Option<Name>),
}
Variants
AlterTable(QualifiedName, AlterTableBody)
Analyze(Option<QualifiedName>)
Attach
Fields of Attach
Begin(Option<TransactionType>, Option<Name>)
Commit(Option<Name>)
CreateIndex
Fields of CreateIndex
CreateTable
Fields of CreateTable
CreateTrigger
Fields of CreateTrigger
CreateView
Fields of CreateView
CreateVirtualTable
Fields of CreateVirtualTable
Delete
Fields of Delete
Detach(Expr)
DropIndex
Fields of DropIndex
DropTable
Fields of DropTable
DropTrigger
Fields of DropTrigger
DropView
Fields of DropView
Insert
Fields of Insert
Pragma(QualifiedName, Option<PragmaBody>)
Reindex
Fields of Reindex
Release(Name)
Rollback
Fields of Rollback
Savepoint(Name)
Select(Select)
Update
Fields of Update
Vacuum(Option<Name>)
Trait Implementations
Formats the value using the given formatter.
fn eq(&self, __arg_0: &Stmt) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Stmt) -> bool
This method tests for !=
.