Enum databend_common_ast::ast::Statement

source ·
pub enum Statement {
Show 156 variants Query(Box<Query>), Explain { kind: ExplainKind, options: Vec<ExplainOption>, query: Box<Statement>, }, ExplainAnalyze { partial: bool, query: Box<Statement>, }, CopyIntoTable(CopyIntoTableStmt), CopyIntoLocation(CopyIntoLocationStmt), Call(CallStmt), ShowSettings { show_options: Option<ShowOptions>, }, ShowProcessList { show_options: Option<ShowOptions>, }, ShowMetrics { show_options: Option<ShowOptions>, }, ShowEngines { show_options: Option<ShowOptions>, }, ShowFunctions { show_options: Option<ShowOptions>, }, ShowUserFunctions { show_options: Option<ShowOptions>, }, ShowTableFunctions { show_options: Option<ShowOptions>, }, ShowIndexes { show_options: Option<ShowOptions>, }, ShowLocks(ShowLocksStmt), KillStmt { kill_target: KillTarget, object_id: String, }, SetStmt { set_type: SetType, identifiers: Vec<Identifier>, values: SetValues, }, UnSetStmt { unset_type: SetType, identifiers: Vec<Identifier>, }, SetRole { is_default: bool, role_name: String, }, SetSecondaryRoles { option: SecondaryRolesOption, }, Insert(InsertStmt), InsertMultiTable(InsertMultiTableStmt), Replace(ReplaceStmt), MergeInto(MergeIntoStmt), Delete(DeleteStmt), Update(UpdateStmt), ShowCatalogs(ShowCatalogsStmt), ShowCreateCatalog(ShowCreateCatalogStmt), CreateCatalog(CreateCatalogStmt), DropCatalog(DropCatalogStmt), ShowDatabases(ShowDatabasesStmt), ShowCreateDatabase(ShowCreateDatabaseStmt), CreateDatabase(CreateDatabaseStmt), DropDatabase(DropDatabaseStmt), UndropDatabase(UndropDatabaseStmt), AlterDatabase(AlterDatabaseStmt), UseDatabase { database: Identifier, }, ShowTables(ShowTablesStmt), ShowCreateTable(ShowCreateTableStmt), DescribeTable(DescribeTableStmt), ShowTablesStatus(ShowTablesStatusStmt), ShowDropTables(ShowDropTablesStmt), AttachTable(AttachTableStmt), CreateTable(CreateTableStmt), DropTable(DropTableStmt), UndropTable(UndropTableStmt), AlterTable(AlterTableStmt), RenameTable(RenameTableStmt), TruncateTable(TruncateTableStmt), OptimizeTable(OptimizeTableStmt), VacuumTable(VacuumTableStmt), VacuumDropTable(VacuumDropTableStmt), VacuumTemporaryFiles(VacuumTemporaryFiles), AnalyzeTable(AnalyzeTableStmt), ExistsTable(ExistsTableStmt), CreateDictionary(CreateDictionaryStmt), DropDictionary(DropDictionaryStmt), ShowCreateDictionary(ShowCreateDictionaryStmt), ShowDictionaries { show_options: Option<ShowOptions>, }, ShowColumns(ShowColumnsStmt), CreateView(CreateViewStmt), AlterView(AlterViewStmt), DropView(DropViewStmt), ShowViews(ShowViewsStmt), DescribeView(DescribeViewStmt), CreateStream(CreateStreamStmt), DropStream(DropStreamStmt), ShowStreams(ShowStreamsStmt), DescribeStream(DescribeStreamStmt), CreateIndex(CreateIndexStmt), DropIndex(DropIndexStmt), RefreshIndex(RefreshIndexStmt), CreateInvertedIndex(CreateInvertedIndexStmt), DropInvertedIndex(DropInvertedIndexStmt), RefreshInvertedIndex(RefreshInvertedIndexStmt), CreateVirtualColumn(CreateVirtualColumnStmt), AlterVirtualColumn(AlterVirtualColumnStmt), DropVirtualColumn(DropVirtualColumnStmt), RefreshVirtualColumn(RefreshVirtualColumnStmt), ShowVirtualColumns(ShowVirtualColumnsStmt), ShowUsers, CreateUser(CreateUserStmt), AlterUser(AlterUserStmt), DropUser { if_exists: bool, user: UserIdentity, }, ShowRoles, CreateRole { if_not_exists: bool, role_name: String, }, DropRole { if_exists: bool, role_name: String, }, Grant(GrantStmt), ShowGrants { principal: Option<PrincipalIdentity>, show_options: Option<ShowOptions>, }, ShowObjectPrivileges(ShowObjectPrivilegesStmt), Revoke(RevokeStmt), CreateUDF(CreateUDFStmt), DropUDF { if_exists: bool, udf_name: Identifier, }, AlterUDF(AlterUDFStmt), CreateStage(CreateStageStmt), ShowStages, DropStage { if_exists: bool, stage_name: String, }, DescribeStage { stage_name: String, }, RemoveStage { location: String, pattern: String, }, ListStage { location: String, pattern: Option<String>, }, CreateConnection(CreateConnectionStmt), DropConnection(DropConnectionStmt), DescribeConnection(DescribeConnectionStmt), ShowConnections(ShowConnectionsStmt), CreateFileFormat { create_option: CreateOption, name: String, file_format_options: FileFormatOptions, }, DropFileFormat { if_exists: bool, name: String, }, ShowFileFormats, Presign(PresignStmt), CreateShareEndpoint(CreateShareEndpointStmt), ShowShareEndpoint(ShowShareEndpointStmt), DropShareEndpoint(DropShareEndpointStmt), CreateShare(CreateShareStmt), DropShare(DropShareStmt), GrantShareObject(GrantShareObjectStmt), RevokeShareObject(RevokeShareObjectStmt), AlterShareTenants(AlterShareTenantsStmt), DescShare(DescShareStmt), ShowShares(ShowSharesStmt), ShowObjectGrantPrivileges(ShowObjectGrantPrivilegesStmt), ShowGrantsOfShare(ShowGrantsOfShareStmt), CreateDatamaskPolicy(CreateDatamaskPolicyStmt), DropDatamaskPolicy(DropDatamaskPolicyStmt), DescDatamaskPolicy(DescDatamaskPolicyStmt), CreateNetworkPolicy(CreateNetworkPolicyStmt), AlterNetworkPolicy(AlterNetworkPolicyStmt), DropNetworkPolicy(DropNetworkPolicyStmt), DescNetworkPolicy(DescNetworkPolicyStmt), ShowNetworkPolicies, CreatePasswordPolicy(CreatePasswordPolicyStmt), AlterPasswordPolicy(AlterPasswordPolicyStmt), DropPasswordPolicy(DropPasswordPolicyStmt), DescPasswordPolicy(DescPasswordPolicyStmt), ShowPasswordPolicies { show_options: Option<ShowOptions>, }, CreateTask(CreateTaskStmt), AlterTask(AlterTaskStmt), ExecuteTask(ExecuteTaskStmt), DescribeTask(DescribeTaskStmt), DropTask(DropTaskStmt), ShowTasks(ShowTasksStmt), CreateDynamicTable(CreateDynamicTableStmt), CreatePipe(CreatePipeStmt), DescribePipe(DescribePipeStmt), DropPipe(DropPipeStmt), AlterPipe(AlterPipeStmt), Begin, Commit, Abort, CreateNotification(CreateNotificationStmt), AlterNotification(AlterNotificationStmt), DropNotification(DropNotificationStmt), DescribeNotification(DescribeNotificationStmt), ExecuteImmediate(ExecuteImmediateStmt), CreateSequence(CreateSequenceStmt), DropSequence(DropSequenceStmt), SetPriority { priority: Priority, object_id: String, }, System(SystemStmt),
}

Variants§

§

Query(Box<Query>)

§

Explain

Fields

§

ExplainAnalyze

Fields

§partial: bool
§

CopyIntoTable(CopyIntoTableStmt)

§

CopyIntoLocation(CopyIntoLocationStmt)

§

Call(CallStmt)

§

ShowSettings

Fields

§show_options: Option<ShowOptions>
§

ShowProcessList

Fields

§show_options: Option<ShowOptions>
§

ShowMetrics

Fields

§show_options: Option<ShowOptions>
§

ShowEngines

Fields

§show_options: Option<ShowOptions>
§

ShowFunctions

Fields

§show_options: Option<ShowOptions>
§

ShowUserFunctions

Fields

§show_options: Option<ShowOptions>
§

ShowTableFunctions

Fields

§show_options: Option<ShowOptions>
§

ShowIndexes

Fields

§show_options: Option<ShowOptions>
§

ShowLocks(ShowLocksStmt)

§

KillStmt

Fields

§kill_target: KillTarget
§object_id: String
§

SetStmt

Fields

§set_type: SetType
§identifiers: Vec<Identifier>
§values: SetValues
§

UnSetStmt

Fields

§unset_type: SetType
§identifiers: Vec<Identifier>
§

SetRole

Fields

§is_default: bool
§role_name: String
§

SetSecondaryRoles

§

Insert(InsertStmt)

§

InsertMultiTable(InsertMultiTableStmt)

§

Replace(ReplaceStmt)

§

MergeInto(MergeIntoStmt)

§

Delete(DeleteStmt)

§

Update(UpdateStmt)

§

ShowCatalogs(ShowCatalogsStmt)

§

ShowCreateCatalog(ShowCreateCatalogStmt)

§

CreateCatalog(CreateCatalogStmt)

§

DropCatalog(DropCatalogStmt)

§

ShowDatabases(ShowDatabasesStmt)

§

ShowCreateDatabase(ShowCreateDatabaseStmt)

§

CreateDatabase(CreateDatabaseStmt)

§

DropDatabase(DropDatabaseStmt)

§

UndropDatabase(UndropDatabaseStmt)

§

AlterDatabase(AlterDatabaseStmt)

§

UseDatabase

Fields

§database: Identifier
§

ShowTables(ShowTablesStmt)

§

ShowCreateTable(ShowCreateTableStmt)

§

DescribeTable(DescribeTableStmt)

§

ShowTablesStatus(ShowTablesStatusStmt)

§

ShowDropTables(ShowDropTablesStmt)

§

AttachTable(AttachTableStmt)

§

CreateTable(CreateTableStmt)

§

DropTable(DropTableStmt)

§

UndropTable(UndropTableStmt)

§

AlterTable(AlterTableStmt)

§

RenameTable(RenameTableStmt)

§

TruncateTable(TruncateTableStmt)

§

OptimizeTable(OptimizeTableStmt)

§

VacuumTable(VacuumTableStmt)

§

VacuumDropTable(VacuumDropTableStmt)

§

VacuumTemporaryFiles(VacuumTemporaryFiles)

§

AnalyzeTable(AnalyzeTableStmt)

§

ExistsTable(ExistsTableStmt)

§

CreateDictionary(CreateDictionaryStmt)

§

DropDictionary(DropDictionaryStmt)

§

ShowCreateDictionary(ShowCreateDictionaryStmt)

§

ShowDictionaries

Fields

§show_options: Option<ShowOptions>
§

ShowColumns(ShowColumnsStmt)

§

CreateView(CreateViewStmt)

§

AlterView(AlterViewStmt)

§

DropView(DropViewStmt)

§

ShowViews(ShowViewsStmt)

§

DescribeView(DescribeViewStmt)

§

CreateStream(CreateStreamStmt)

§

DropStream(DropStreamStmt)

§

ShowStreams(ShowStreamsStmt)

§

DescribeStream(DescribeStreamStmt)

§

CreateIndex(CreateIndexStmt)

§

DropIndex(DropIndexStmt)

§

RefreshIndex(RefreshIndexStmt)

§

CreateInvertedIndex(CreateInvertedIndexStmt)

§

DropInvertedIndex(DropInvertedIndexStmt)

§

RefreshInvertedIndex(RefreshInvertedIndexStmt)

§

CreateVirtualColumn(CreateVirtualColumnStmt)

§

AlterVirtualColumn(AlterVirtualColumnStmt)

§

DropVirtualColumn(DropVirtualColumnStmt)

§

RefreshVirtualColumn(RefreshVirtualColumnStmt)

§

ShowVirtualColumns(ShowVirtualColumnsStmt)

§

ShowUsers

§

CreateUser(CreateUserStmt)

§

AlterUser(AlterUserStmt)

§

DropUser

Fields

§if_exists: bool
§

ShowRoles

§

CreateRole

Fields

§if_not_exists: bool
§role_name: String
§

DropRole

Fields

§if_exists: bool
§role_name: String
§

Grant(GrantStmt)

§

ShowGrants

Fields

§show_options: Option<ShowOptions>
§

ShowObjectPrivileges(ShowObjectPrivilegesStmt)

§

Revoke(RevokeStmt)

§

CreateUDF(CreateUDFStmt)

§

DropUDF

Fields

§if_exists: bool
§udf_name: Identifier
§

AlterUDF(AlterUDFStmt)

§

CreateStage(CreateStageStmt)

§

ShowStages

§

DropStage

Fields

§if_exists: bool
§stage_name: String
§

DescribeStage

Fields

§stage_name: String
§

RemoveStage

Fields

§location: String
§pattern: String
§

ListStage

Fields

§location: String
§pattern: Option<String>
§

CreateConnection(CreateConnectionStmt)

§

DropConnection(DropConnectionStmt)

§

DescribeConnection(DescribeConnectionStmt)

§

ShowConnections(ShowConnectionsStmt)

§

CreateFileFormat

Fields

§create_option: CreateOption
§name: String
§file_format_options: FileFormatOptions
§

DropFileFormat

Fields

§if_exists: bool
§name: String
§

ShowFileFormats

§

Presign(PresignStmt)

§

CreateShareEndpoint(CreateShareEndpointStmt)

§

ShowShareEndpoint(ShowShareEndpointStmt)

§

DropShareEndpoint(DropShareEndpointStmt)

§

CreateShare(CreateShareStmt)

§

DropShare(DropShareStmt)

§

GrantShareObject(GrantShareObjectStmt)

§

RevokeShareObject(RevokeShareObjectStmt)

§

AlterShareTenants(AlterShareTenantsStmt)

§

DescShare(DescShareStmt)

§

ShowShares(ShowSharesStmt)

§

ShowObjectGrantPrivileges(ShowObjectGrantPrivilegesStmt)

§

ShowGrantsOfShare(ShowGrantsOfShareStmt)

§

CreateDatamaskPolicy(CreateDatamaskPolicyStmt)

§

DropDatamaskPolicy(DropDatamaskPolicyStmt)

§

DescDatamaskPolicy(DescDatamaskPolicyStmt)

§

CreateNetworkPolicy(CreateNetworkPolicyStmt)

§

AlterNetworkPolicy(AlterNetworkPolicyStmt)

§

DropNetworkPolicy(DropNetworkPolicyStmt)

§

DescNetworkPolicy(DescNetworkPolicyStmt)

§

ShowNetworkPolicies

§

CreatePasswordPolicy(CreatePasswordPolicyStmt)

§

AlterPasswordPolicy(AlterPasswordPolicyStmt)

§

DropPasswordPolicy(DropPasswordPolicyStmt)

§

DescPasswordPolicy(DescPasswordPolicyStmt)

§

ShowPasswordPolicies

Fields

§show_options: Option<ShowOptions>
§

CreateTask(CreateTaskStmt)

§

AlterTask(AlterTaskStmt)

§

ExecuteTask(ExecuteTaskStmt)

§

DescribeTask(DescribeTaskStmt)

§

DropTask(DropTaskStmt)

§

ShowTasks(ShowTasksStmt)

§

CreateDynamicTable(CreateDynamicTableStmt)

§

CreatePipe(CreatePipeStmt)

§

DescribePipe(DescribePipeStmt)

§

DropPipe(DropPipeStmt)

§

AlterPipe(AlterPipeStmt)

§

Begin

§

Commit

§

Abort

§

CreateNotification(CreateNotificationStmt)

§

AlterNotification(AlterNotificationStmt)

§

DropNotification(DropNotificationStmt)

§

DescribeNotification(DescribeNotificationStmt)

§

ExecuteImmediate(ExecuteImmediateStmt)

§

CreateSequence(CreateSequenceStmt)

§

DropSequence(DropSequenceStmt)

§

SetPriority

Fields

§priority: Priority
§object_id: String
§

System(SystemStmt)

Implementations§

Trait Implementations§

source§

impl Clone for Statement

source§

fn clone(&self) -> Statement

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Statement

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Statement

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drive for Statement

source§

fn drive<V: Visitor>(&self, visitor: &mut V)

source§

impl DriveMut for Statement

source§

fn drive_mut<V: VisitorMut>(&mut self, visitor: &mut V)

source§

impl PartialEq for Statement

source§

fn eq(&self, other: &Statement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Statement

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V