Enum 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: Analyze
Truncate(Truncate)
Truncate (Hive)
Tuple Fields of Truncate
0: Truncate
Msck(Msck)
Msck (Hive)
Tuple Fields of Msck
0: Msck
SELECT
Insert(Insert)
INSERT
Tuple Fields of Insert
0: Insert
Directory(Directory)
Tuple Fields of Directory
0: Directory
Copy(Copy)
Tuple Fields of Copy
0: Copy
Update(Update)
UPDATE
Tuple Fields of Update
0: Update
Delete(Delete)
DELETE
Tuple Fields of Delete
0: Delete
CreateView(CreateView)
CREATE VIEW
Tuple Fields of CreateView
0: CreateView
CreateTable(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: CreateIndex
AlterTable(AlterTable)
ALTER TABLE
Tuple Fields of AlterTable
0: AlterTable
Drop(Drop)
DROP
Tuple Fields of Drop
0: Drop
SetVariable(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: SetVariable
ShowVariable(ShowVariable)
SHOW
Note: this is a PostgreSQL-specific statement.
Tuple Fields of ShowVariable
0: ShowVariable
ShowCreate(ShowCreate)
SHOW CREATE TABLE
Note: this is a MySQL-specific statement.
Tuple Fields of ShowCreate
0: ShowCreate
ShowColumns(ShowColumns)
SHOW COLUMNS
Note: this is a MySQL-specific statement.
Tuple Fields of ShowColumns
0: ShowColumns
StartTransaction(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: Commit
Rollback(Rollback)
ROLLBACK [ TRANSACTION | WORK ] [ AND [ NO ] CHAIN ]
Tuple Fields of Rollback
0: Rollback
CreateSchema(CreateSchema)
CREATE SCHEMA
Tuple Fields of CreateSchema
0: CreateSchema
CreateDatabase(CreateDatabase)
CREATE DATABASE
Tuple Fields of CreateDatabase
Assert(Assert)
ASSERT <condition> [AS <message>]
Tuple Fields of Assert
0: Assert
Deallocate(Deallocate)
DEALLOCATE [ PREPARE ] { name | ALL }
Note: this is a PostgreSQL-specific statement.
Tuple Fields of Deallocate
0: Deallocate
Execute(Execute)
EXECUTE name [ ( parameter [, ...] ) ]
Note: this is a PostgreSQL-specific statement.
Tuple Fields of Execute
0: Execute
Prepare(Prepare)
PREPARE name [ ( data_type [, ...] ) ] AS statement
Note: this is a PostgreSQL-specific statement.
Tuple Fields of Prepare
0: Prepare
Explain(Explain)
EXPLAIN
Tuple Fields of Explain
0: Explain
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl UnwindSafe for Statement
Blanket Implementations
Mutably borrows from an owned value. Read more