pub enum DdlOperation {
CreateTable {
table: String,
if_not_exists: bool,
columns: Vec<ColumnDefinition>,
constraints: Vec<ConstraintDefinitionIr>,
},
CreateTableAs {
table: String,
if_not_exists: bool,
query: Box<Select>,
},
AlterTable {
table: String,
action: AlterTableAction,
},
DropTable {
table: String,
if_exists: bool,
},
TruncateTable {
table: String,
},
CreateIndex {
index: IndexDefinition,
},
DropIndex {
table: String,
index: String,
if_exists: bool,
},
AlterIndex {
index: String,
new_name: String,
},
}Variants§
CreateTable
CreateTableAs
AlterTable
DropTable
TruncateTable
CreateIndex
Fields
§
index: IndexDefinitionDropIndex
AlterIndex
Trait Implementations§
Source§impl Clone for DdlOperation
impl Clone for DdlOperation
Source§fn clone(&self) -> DdlOperation
fn clone(&self) -> DdlOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DdlOperation
impl Debug for DdlOperation
Source§impl<'de> Deserialize<'de> for DdlOperation
impl<'de> Deserialize<'de> for DdlOperation
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 DdlOperation
impl PartialEq for DdlOperation
Source§impl Serialize for DdlOperation
impl Serialize for DdlOperation
impl StructuralPartialEq for DdlOperation
Auto Trait Implementations§
impl Freeze for DdlOperation
impl RefUnwindSafe for DdlOperation
impl Send for DdlOperation
impl Sync for DdlOperation
impl Unpin for DdlOperation
impl UnsafeUnpin for DdlOperation
impl UnwindSafe for DdlOperation
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