pub enum AlterOp {
Show 13 variants
AddColumn(Column),
DropColumn {
name: String,
cascade: bool,
},
RenameColumn {
from: String,
to: String,
},
AlterType {
column: String,
new_type: ColumnType,
using: Option<String>,
},
SetNotNull(String),
DropNotNull(String),
SetDefault {
column: String,
expr: String,
},
DropDefault(String),
AddConstraint {
name: String,
constraint: TableConstraint,
},
DropConstraint {
name: String,
cascade: bool,
},
RenameTable(String),
SetSchema(String),
SetRowLevelSecurity(bool),
}Expand description
ALTER TABLE operation
Variants§
AddColumn(Column)
DropColumn
DROP COLUMN
RenameColumn
RENAME COLUMN old TO new
AlterType
ALTER COLUMN SET DATA TYPE
SetNotNull(String)
DropNotNull(String)
SetDefault
ALTER COLUMN SET DEFAULT
DropDefault(String)
AddConstraint
ADD CONSTRAINT
DropConstraint
DROP CONSTRAINT
RenameTable(String)
RENAME TO
SetSchema(String)
SetRowLevelSecurity(bool)
ENABLE/DISABLE ROW LEVEL SECURITY
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlterOp
impl RefUnwindSafe for AlterOp
impl Send for AlterOp
impl Sync for AlterOp
impl Unpin for AlterOp
impl UnwindSafe for AlterOp
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