Enum sql_parser::ast::defs::statement::Statement [−][src]
pub enum Statement<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
0: SelectStatement<T>
Insert(InsertStatement<T>)
Tuple Fields
0: InsertStatement<T>
Copy(CopyStatement<T>)
Tuple Fields
0: CopyStatement<T>
Update(UpdateStatement<T>)
Tuple Fields
0: UpdateStatement<T>
Delete(DeleteStatement<T>)
Tuple Fields
0: DeleteStatement<T>
CreateDatabase(CreateDatabaseStatement)
Tuple Fields
CreateSchema(CreateSchemaStatement)
Tuple Fields
CreateSource(CreateSourceStatement<T>)
Tuple Fields
0: CreateSourceStatement<T>
CreateSink(CreateSinkStatement<T>)
Tuple Fields
0: CreateSinkStatement<T>
CreateView(CreateViewStatement<T>)
Tuple Fields
0: CreateViewStatement<T>
CreateViews(CreateViewsStatement<T>)
Tuple Fields
0: CreateViewsStatement<T>
CreateTable(CreateTableStatement<T>)
Tuple Fields
0: CreateTableStatement<T>
CreateIndex(CreateIndexStatement<T>)
Tuple Fields
0: CreateIndexStatement<T>
CreateType(CreateTypeStatement<T>)
Tuple Fields
0: CreateTypeStatement<T>
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
0: ShowDatabasesStatement<T>
ShowObjects(ShowObjectsStatement<T>)
Tuple Fields
0: ShowObjectsStatement<T>
ShowIndexes(ShowIndexesStatement<T>)
Tuple Fields
0: ShowIndexesStatement<T>
ShowColumns(ShowColumnsStatement<T>)
Tuple Fields
0: ShowColumnsStatement<T>
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
0: TailStatement<T>
Explain(ExplainStatement<T>)
Tuple Fields
0: ExplainStatement<T>
Declare(DeclareStatement<T>)
Tuple Fields
0: DeclareStatement<T>
Fetch(FetchStatement)
Tuple Fields
Close(CloseStatement)
Tuple Fields
Prepare(PrepareStatement<T>)
Tuple Fields
0: PrepareStatement<T>
Execute(ExecuteStatement<T>)
Tuple Fields
0: ExecuteStatement<T>
Deallocate(DeallocateStatement)
Tuple Fields
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Statement<T> where
<T as AstInfo>::Id: RefUnwindSafe,
<T as AstInfo>::ObjectName: RefUnwindSafe,
impl<T> UnwindSafe for Statement<T> where
<T as AstInfo>::Id: UnwindSafe,
<T as AstInfo>::ObjectName: UnwindSafe,
Blanket Implementations
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.
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