pub enum AlterTableOperation {
AddColumn(ColumnDef),
AddConstraint(TableConstraint),
DropColumn {
column: Ident,
if_exists: bool,
cascade: bool,
},
DropConstraint {
name: Ident,
},
}
Expand description
An ALTER TABLE
(Statement::AlterTable
) operation
Variants§
AddColumn(ColumnDef)
AddConstraint(TableConstraint)
ADD <table_constraint>
DropColumn
DropConstraint
TODO: implement DROP CONSTRAINT <name>
Trait Implementations§
Source§impl Clone for AlterTableOperation
impl Clone for AlterTableOperation
Source§fn clone(&self) -> AlterTableOperation
fn clone(&self) -> AlterTableOperation
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 AlterTableOperation
impl Debug for AlterTableOperation
Source§impl Display for AlterTableOperation
impl Display for AlterTableOperation
Source§impl Hash for AlterTableOperation
impl Hash for AlterTableOperation
Source§impl PartialEq for AlterTableOperation
impl PartialEq for AlterTableOperation
impl Eq for AlterTableOperation
impl StructuralPartialEq for AlterTableOperation
Auto Trait Implementations§
impl Freeze for AlterTableOperation
impl RefUnwindSafe for AlterTableOperation
impl Send for AlterTableOperation
impl Sync for AlterTableOperation
impl Unpin for AlterTableOperation
impl UnwindSafe for AlterTableOperation
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