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
ExplainAnalyze
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
SetStmt
UnSetStmt
SetRole
SetSecondaryRoles
Fields
§
option: SecondaryRolesOptionInsert(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: IdentifierShowTables(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
ShowRoles
CreateRole
DropRole
Grant(GrantStmt)
ShowGrants
ShowObjectPrivileges(ShowObjectPrivilegesStmt)
Revoke(RevokeStmt)
CreateUDF(CreateUDFStmt)
DropUDF
AlterUDF(AlterUDFStmt)
CreateStage(CreateStageStmt)
ShowStages
DropStage
DescribeStage
RemoveStage
ListStage
CreateConnection(CreateConnectionStmt)
DropConnection(DropConnectionStmt)
DescribeConnection(DescribeConnectionStmt)
ShowConnections(ShowConnectionsStmt)
CreateFileFormat
DropFileFormat
ShowFileFormats
Presign(PresignStmt)
ShowObjectGrantPrivileges(ShowObjectGrantPrivilegesStmt)
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
System(SystemStmt)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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