Enum sqlx_models_parser::ast::Statement [−][src]
pub enum Statement {
Show 30 variants
Analyze(Analyze),
Truncate(Truncate),
Msck(Msck),
Query(Box<Query>),
Insert(Insert),
Directory(Directory),
Copy(Copy),
Update(Update),
Delete(Delete),
CreateView(CreateView),
CreateTable(Box<CreateTable>),
CreateVirtualTable(CreateVirtualTable),
CreateIndex(CreateIndex),
AlterTable(AlterTable),
Drop(Drop),
SetVariable(SetVariable),
ShowVariable(ShowVariable),
ShowCreate(ShowCreate),
ShowColumns(ShowColumns),
StartTransaction(StartTransaction),
SetTransaction(SetTransaction),
Commit(Commit),
Rollback(Rollback),
CreateSchema(CreateSchema),
CreateDatabase(CreateDatabase),
Assert(Assert),
Deallocate(Deallocate),
Execute(Execute),
Prepare(Prepare),
Explain(Explain),
}Expand description
A top-level statement (SELECT, INSERT, CREATE, etc.)
Variants
Analyze(Analyze)Analyze (Hive)
Tuple Fields of Analyze
0: AnalyzeTruncate(Truncate)Truncate (Hive)
Tuple Fields of Truncate
0: TruncateMsck(Msck)Msck (Hive)
Tuple Fields of Msck
0: MsckSELECT
Insert(Insert)INSERT
Tuple Fields of Insert
0: InsertDirectory(Directory)Tuple Fields of Directory
0: DirectoryCopy(Copy)Tuple Fields of Copy
0: CopyUpdate(Update)UPDATE
Tuple Fields of Update
0: UpdateDelete(Delete)DELETE
Tuple Fields of Delete
0: DeleteCreateView(CreateView)CREATE VIEW
Tuple Fields of CreateView
0: CreateViewCreateTable(Box<CreateTable>)CREATE TABLE
Tuple Fields of CreateTable
0: Box<CreateTable>CreateVirtualTable(CreateVirtualTable)SQLite’s CREATE VIRTUAL TABLE .. USING <module_name> (<module_args>)
Tuple Fields of CreateVirtualTable
CreateIndex(CreateIndex)CREATE INDEX
Tuple Fields of CreateIndex
0: CreateIndexAlterTable(AlterTable)ALTER TABLE
Tuple Fields of AlterTable
0: AlterTableDrop(Drop)DROP
Tuple Fields of Drop
0: DropSetVariable(SetVariable)SET
Note: this is not a standard SQL statement, but it is supported by at least MySQL and PostgreSQL. Not all MySQL-specific syntatic forms are supported yet.
Tuple Fields of SetVariable
0: SetVariableShowVariable(ShowVariable)SHOW
Note: this is a PostgreSQL-specific statement.
Tuple Fields of ShowVariable
0: ShowVariableShowCreate(ShowCreate)SHOW CREATE TABLE
Note: this is a MySQL-specific statement.
Tuple Fields of ShowCreate
0: ShowCreateShowColumns(ShowColumns)SHOW COLUMNS
Note: this is a MySQL-specific statement.
Tuple Fields of ShowColumns
0: ShowColumnsStartTransaction(StartTransaction){ BEGIN [ TRANSACTION | WORK ] | START TRANSACTION } ...
Tuple Fields of StartTransaction
SetTransaction(SetTransaction)SET TRANSACTION ...
Tuple Fields of SetTransaction
Commit(Commit)COMMIT [ TRANSACTION | WORK ] [ AND [ NO ] CHAIN ]
Tuple Fields of Commit
0: CommitRollback(Rollback)ROLLBACK [ TRANSACTION | WORK ] [ AND [ NO ] CHAIN ]
Tuple Fields of Rollback
0: RollbackCreateSchema(CreateSchema)CREATE SCHEMA
Tuple Fields of CreateSchema
0: CreateSchemaCreateDatabase(CreateDatabase)CREATE DATABASE
Tuple Fields of CreateDatabase
Assert(Assert)ASSERT <condition> [AS <message>]
Tuple Fields of Assert
0: AssertDeallocate(Deallocate)DEALLOCATE [ PREPARE ] { name | ALL }
Note: this is a PostgreSQL-specific statement.
Tuple Fields of Deallocate
0: DeallocateExecute(Execute)EXECUTE name [ ( parameter [, ...] ) ]
Note: this is a PostgreSQL-specific statement.
Tuple Fields of Execute
0: ExecutePrepare(Prepare)PREPARE name [ ( data_type [, ...] ) ] AS statement
Note: this is a PostgreSQL-specific statement.
Tuple Fields of Prepare
0: PrepareExplain(Explain)EXPLAIN
Tuple Fields of Explain
0: ExplainTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl UnwindSafe for Statement
Blanket Implementations
Mutably borrows from an owned value. Read more