pub struct AlterTable {
pub name: ObjectName,
pub if_exists: bool,
pub only: bool,
pub operations: Vec<AlterTableOperation>,
pub location: Option<HiveSetLocation>,
pub on_cluster: Option<Ident>,
pub table_type: Option<AlterTableType>,
pub end_token: AttachedToken,
}Expand description
ALTER TABLE statement
Fields§
§name: ObjectNameTable name
if_exists: bool§only: bool§operations: Vec<AlterTableOperation>§location: Option<HiveSetLocation>§on_cluster: Option<Ident>ClickHouse dialect supports ON CLUSTER clause for ALTER TABLE
For example: ALTER TABLE table_name ON CLUSTER cluster_name ADD COLUMN c UInt32
ClickHouse
table_type: Option<AlterTableType>Table type: None for regular tables, Some(AlterTableType) for Iceberg or Dynamic tables
end_token: AttachedTokenToken that represents the end of the statement (semicolon or EOF)
Trait Implementations§
Source§impl Clone for AlterTable
impl Clone for AlterTable
Source§fn clone(&self) -> AlterTable
fn clone(&self) -> AlterTable
Returns a duplicate 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 AlterTable
impl Debug for AlterTable
Source§impl<'de> Deserialize<'de> for AlterTable
impl<'de> Deserialize<'de> for AlterTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AlterTable
impl Display for AlterTable
Source§impl From<AlterTable> for Statement
impl From<AlterTable> for Statement
Source§fn from(at: AlterTable) -> Self
fn from(at: AlterTable) -> Self
Converts to this type from the input type.
Source§impl Hash for AlterTable
impl Hash for AlterTable
Source§impl Ord for AlterTable
impl Ord for AlterTable
Source§fn cmp(&self, other: &AlterTable) -> Ordering
fn cmp(&self, other: &AlterTable) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlterTable
impl PartialEq for AlterTable
Source§impl PartialOrd for AlterTable
impl PartialOrd for AlterTable
Source§impl Serialize for AlterTable
impl Serialize for AlterTable
Source§impl Spanned for AlterTable
impl Spanned for AlterTable
Source§impl Visit for AlterTable
impl Visit for AlterTable
Source§impl VisitMut for AlterTable
impl VisitMut for AlterTable
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for AlterTable
impl StructuralPartialEq for AlterTable
Auto Trait Implementations§
impl Freeze for AlterTable
impl RefUnwindSafe for AlterTable
impl Send for AlterTable
impl Sync for AlterTable
impl Unpin for AlterTable
impl UnwindSafe for AlterTable
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