pub struct AlterTable {
pub name: TableRef,
pub actions: Vec<AlterTableAction>,
pub if_exists: bool,
pub algorithm: Option<String>,
pub lock: Option<String>,
pub with_check: Option<String>,
pub partition: Option<Vec<(Identifier, Expression)>>,
pub on_cluster: Option<OnCluster>,
}Expand description
ALTER TABLE statement
Fields§
§name: TableRef§actions: Vec<AlterTableAction>§if_exists: boolIF EXISTS clause
algorithm: Option<String>MySQL: ALGORITHM=INPLACE|COPY|DEFAULT|INSTANT
lock: Option<String>MySQL: LOCK=NONE|SHARED|DEFAULT|EXCLUSIVE
with_check: Option<String>TSQL: WITH CHECK / WITH NOCHECK modifier before ADD CONSTRAINT
partition: Option<Vec<(Identifier, Expression)>>Hive: PARTITION clause before actions (e.g., ALTER TABLE x PARTITION(y=z) ADD COLUMN …)
on_cluster: Option<OnCluster>ClickHouse: ON CLUSTER clause for distributed DDL
Implementations§
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 PartialEq for AlterTable
impl PartialEq for AlterTable
Source§impl Serialize for AlterTable
impl Serialize 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