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
Query(Box<Query>)

SELECT

Tuple Fields of Query

0: Box<Query>
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

0: 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

0: StartTransaction
SetTransaction(SetTransaction)

SET TRANSACTION ...

Tuple Fields of SetTransaction

0: 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

0: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. 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.