pub enum Operation {
Show 16 variants
CreateEnum {
name: String,
variants: Vec<String>,
},
AlterEnum {
name: String,
added: Vec<String>,
removed: Vec<String>,
},
DropEnum {
name: String,
},
CreateTable {
table: TableDef,
},
DropTable {
name: String,
},
RenameTable {
old: String,
new: String,
},
AddColumn {
table: String,
column: ColumnDef,
},
DropColumn {
table: String,
column: String,
},
RenameColumn {
table: String,
old: String,
new: String,
},
AlterColumn {
table: String,
changes: Vec<ColumnChange>,
table_def: TableDef,
},
CreateIndex {
table: String,
index: IndexDef,
},
DropIndex {
name: String,
},
AddForeignKey {
table: String,
fk: ForeignKeyDef,
},
DropForeignKey {
table: String,
name: String,
},
AddCheckConstraint {
table: String,
name: String,
expr: String,
},
DropCheckConstraint {
table: String,
name: String,
},
}Variants§
CreateEnum
AlterEnum
DropEnum
CreateTable
DropTable
RenameTable
AddColumn
DropColumn
RenameColumn
AlterColumn
CreateIndex
DropIndex
AddForeignKey
DropForeignKey
AddCheckConstraint
DropCheckConstraint
Trait Implementations§
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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