Enum databend_common_ast::ast::AlterTableAction
source · pub enum AlterTableAction {
RenameTable {
new_table: Identifier,
},
AddColumn {
column: ColumnDefinition,
option: AddColumnOption,
},
RenameColumn {
old_column: Identifier,
new_column: Identifier,
},
ModifyTableComment {
new_comment: String,
},
ModifyColumn {
action: ModifyColumnAction,
},
DropColumn {
column: Identifier,
},
AlterTableClusterKey {
cluster_by: Vec<Expr>,
},
DropTableClusterKey,
ReclusterTable {
is_final: bool,
selection: Option<Expr>,
limit: Option<u64>,
},
FlashbackTo {
point: TimeTravelPoint,
},
SetOptions {
set_options: BTreeMap<String, String>,
},
}Variants§
RenameTable
Fields
§
new_table: IdentifierAddColumn
RenameColumn
ModifyTableComment
ModifyColumn
Fields
§
action: ModifyColumnActionDropColumn
Fields
§
column: IdentifierAlterTableClusterKey
DropTableClusterKey
ReclusterTable
FlashbackTo
Fields
§
point: TimeTravelPointSetOptions
Trait Implementations§
source§impl Clone for AlterTableAction
impl Clone for AlterTableAction
source§fn clone(&self) -> AlterTableAction
fn clone(&self) -> AlterTableAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AlterTableAction
impl Debug for AlterTableAction
source§impl Display for AlterTableAction
impl Display for AlterTableAction
source§impl DriveMut for AlterTableAction
impl DriveMut for AlterTableAction
fn drive_mut<V: VisitorMut>(&mut self, visitor: &mut V)
source§impl PartialEq for AlterTableAction
impl PartialEq for AlterTableAction
impl StructuralPartialEq for AlterTableAction
Auto Trait Implementations§
impl Freeze for AlterTableAction
impl RefUnwindSafe for AlterTableAction
impl Send for AlterTableAction
impl Sync for AlterTableAction
impl Unpin for AlterTableAction
impl UnwindSafe for AlterTableAction
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