Enum barrel::TableChange [−][src]
pub enum TableChange {
AddColumn(String, Type),
ChangeColumn(String, Type, Rc<dyn Fn(&mut Type)>),
RenameColumn(String, String),
DropColumn(String),
CustomLine(String),
}
Expand description
An enum set that represents a single change on a table
Variants
Add a column of a name and type
Change an existing column
Simply rename a column
DropColumn(String)
Remove a column
Tuple Fields of DropColumn
0: String
CustomLine(String)
Add some custom SQL if all else fails
Tuple Fields of CustomLine
0: String
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TableChange
impl !Send for TableChange
impl !Sync for TableChange
impl Unpin for TableChange
impl !UnwindSafe for TableChange
Blanket Implementations
Mutably borrows from an owned value. Read more