Enum sql::ast::Statement[][src]

pub enum Statement<T> where
    T: AstInfo
{
Show 43 variants Select(SelectStatement<T>), Insert(InsertStatement<T>), Copy(CopyStatement<T>), Update(UpdateStatement<T>), Delete(DeleteStatement<T>), CreateDatabase(CreateDatabaseStatement), CreateSchema(CreateSchemaStatement), CreateSource(CreateSourceStatement<T>), CreateSink(CreateSinkStatement<T>), CreateView(CreateViewStatement<T>), CreateViews(CreateViewsStatement<T>), CreateTable(CreateTableStatement<T>), CreateIndex(CreateIndexStatement<T>), CreateType(CreateTypeStatement<T>), CreateRole(CreateRoleStatement), AlterObjectRename(AlterObjectRenameStatement), AlterIndex(AlterIndexStatement), Discard(DiscardStatement), DropDatabase(DropDatabaseStatement), DropObjects(DropObjectsStatement), SetVariable(SetVariableStatement), ShowDatabases(ShowDatabasesStatement<T>), ShowObjects(ShowObjectsStatement<T>), ShowIndexes(ShowIndexesStatement<T>), ShowColumns(ShowColumnsStatement<T>), ShowCreateView(ShowCreateViewStatement), ShowCreateSource(ShowCreateSourceStatement), ShowCreateTable(ShowCreateTableStatement), ShowCreateSink(ShowCreateSinkStatement), ShowCreateIndex(ShowCreateIndexStatement), ShowVariable(ShowVariableStatement), StartTransaction(StartTransactionStatement), SetTransaction(SetTransactionStatement), Commit(CommitStatement), Rollback(RollbackStatement), Tail(TailStatement<T>), Explain(ExplainStatement<T>), Declare(DeclareStatement<T>), Fetch(FetchStatement), Close(CloseStatement), Prepare(PrepareStatement<T>), Execute(ExecuteStatement<T>), Deallocate(DeallocateStatement),
}
Expand description

A top-level statement (SELECT, INSERT, CREATE, etc.)

Variants

Select(SelectStatement<T>)

Tuple Fields

Insert(InsertStatement<T>)

Tuple Fields

Copy(CopyStatement<T>)

Tuple Fields

Update(UpdateStatement<T>)

Tuple Fields

Delete(DeleteStatement<T>)

Tuple Fields

CreateDatabase(CreateDatabaseStatement)

Tuple Fields

CreateSchema(CreateSchemaStatement)

Tuple Fields

CreateSource(CreateSourceStatement<T>)

Tuple Fields

CreateSink(CreateSinkStatement<T>)

Tuple Fields

CreateView(CreateViewStatement<T>)

Tuple Fields

CreateViews(CreateViewsStatement<T>)

Tuple Fields

CreateTable(CreateTableStatement<T>)

Tuple Fields

CreateIndex(CreateIndexStatement<T>)

Tuple Fields

CreateType(CreateTypeStatement<T>)

Tuple Fields

CreateRole(CreateRoleStatement)

Tuple Fields

AlterObjectRename(AlterObjectRenameStatement)

Tuple Fields

AlterIndex(AlterIndexStatement)

Tuple Fields

Discard(DiscardStatement)

Tuple Fields

DropDatabase(DropDatabaseStatement)

Tuple Fields

DropObjects(DropObjectsStatement)

Tuple Fields

SetVariable(SetVariableStatement)

Tuple Fields

ShowDatabases(ShowDatabasesStatement<T>)

Tuple Fields

ShowObjects(ShowObjectsStatement<T>)

Tuple Fields

ShowIndexes(ShowIndexesStatement<T>)

Tuple Fields

ShowColumns(ShowColumnsStatement<T>)

Tuple Fields

ShowCreateView(ShowCreateViewStatement)

Tuple Fields

ShowCreateSource(ShowCreateSourceStatement)

Tuple Fields

ShowCreateTable(ShowCreateTableStatement)

Tuple Fields

ShowCreateSink(ShowCreateSinkStatement)

Tuple Fields

ShowCreateIndex(ShowCreateIndexStatement)

Tuple Fields

ShowVariable(ShowVariableStatement)

Tuple Fields

StartTransaction(StartTransactionStatement)

Tuple Fields

SetTransaction(SetTransactionStatement)

Tuple Fields

Commit(CommitStatement)

Tuple Fields

Rollback(RollbackStatement)

Tuple Fields

Tail(TailStatement<T>)

Tuple Fields

Explain(ExplainStatement<T>)

Tuple Fields

Declare(DeclareStatement<T>)

Tuple Fields

Fetch(FetchStatement)

Tuple Fields

Close(CloseStatement)

Tuple Fields

Prepare(PrepareStatement<T>)

Tuple Fields

Execute(ExecuteStatement<T>)

Tuple Fields

Deallocate(DeallocateStatement)

Tuple Fields

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

Formats an object with the “alternative” format ({:#}) and returns it.

Compare self to key and return true if they are equal.

Performs the conversion.

The type of the output value.

A well-distributed integer derived from the data.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Upcasts this ProgressEventTimestamp to Any. Read more

Returns the name of the concrete type of this object. Read more

Should always be Self

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)

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more