Enum rorm_sql::alter_table::AlterTableOperation
source · pub enum AlterTableOperation<'until_build, 'post_build> {
RenameTo {
name: String,
},
RenameColumnTo {
column_name: String,
new_column_name: String,
},
AddColumn {
operation: CreateColumnImpl<'until_build, 'post_build>,
},
DropColumn {
name: String,
},
}Expand description
Representation of operations to execute in the context of an ALTER TABLE statement.
Variants
RenameTo
Fields
name: StringNew name of the table
Use this operation to rename a table
RenameColumnTo
Use this operation to rename a column within a table
AddColumn
Fields
operation: CreateColumnImpl<'until_build, 'post_build>Operation to use for adding the column
Use this operation to add a column to an existing table.
DropColumn
Fields
name: StringName of the column to drop
Use this operation to drop an existing column.
Trait Implementations
Auto Trait Implementations
impl<'until_build, 'post_build> RefUnwindSafe for AlterTableOperation<'until_build, 'post_build>
impl<'until_build, 'post_build> Send for AlterTableOperation<'until_build, 'post_build>
impl<'until_build, 'post_build> Sync for AlterTableOperation<'until_build, 'post_build>
impl<'until_build, 'post_build> Unpin for AlterTableOperation<'until_build, 'post_build>where
'post_build: 'until_build,
impl<'until_build, 'post_build> !UnwindSafe for AlterTableOperation<'until_build, 'post_build>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more