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)
Truncate(Truncate)
Truncate (Hive)
Msck(Msck)
Msck (Hive)
Query(Box<Query>)
SELECT
Insert(Insert)
INSERT
Directory(Directory)
Copy(Copy)
Update(Update)
UPDATE
Delete(Delete)
DELETE
CreateView(CreateView)
CREATE VIEW
CreateTable(Box<CreateTable>)
CREATE TABLE
CreateVirtualTable(CreateVirtualTable)
SQLite’s CREATE VIRTUAL TABLE .. USING <module_name> (<module_args>)
CreateIndex(CreateIndex)
CREATE INDEX
AlterTable(AlterTable)
ALTER TABLE
Drop(Drop)
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.
ShowVariable(ShowVariable)
SHOW
Note: this is a PostgreSQL-specific statement.
ShowCreate(ShowCreate)
SHOW CREATE TABLE
Note: this is a MySQL-specific statement.
ShowColumns(ShowColumns)
SHOW COLUMNS
Note: this is a MySQL-specific statement.
StartTransaction(StartTransaction)
{ BEGIN [ TRANSACTION | WORK ] | START TRANSACTION } ...
SetTransaction(SetTransaction)
SET TRANSACTION ...
Commit(Commit)
COMMIT [ TRANSACTION | WORK ] [ AND [ NO ] CHAIN ]
Rollback(Rollback)
ROLLBACK [ TRANSACTION | WORK ] [ AND [ NO ] CHAIN ]
CreateSchema(CreateSchema)
CREATE SCHEMA
CreateDatabase(CreateDatabase)
CREATE DATABASE
Assert(Assert)
ASSERT <condition> [AS <message>]
Deallocate(Deallocate)
DEALLOCATE [ PREPARE ] { name | ALL }
Note: this is a PostgreSQL-specific statement.
Execute(Execute)
EXECUTE name [ ( parameter [, ...] ) ]
Note: this is a PostgreSQL-specific statement.
Prepare(Prepare)
PREPARE name [ ( data_type [, ...] ) ] AS statement
Note: this is a PostgreSQL-specific statement.
Explain(Explain)
EXPLAIN