Enum sqlite3_parser::ast::Stmt

source ·
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
§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>
§returning: Option<Vec<ResultColumn>>
§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>>
§returning: Option<Vec<ResultColumn>>
§

Pragma(QualifiedNameOption<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>
§returning: Option<Vec<ResultColumn>>
§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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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
Compare self to key and return true if they are equal.

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
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.