Enum barrel::DatabaseChange [−][src]
pub enum DatabaseChange {
CreateTable(Table, Rc<dyn Fn(&mut Table)>),
CreateTableIfNotExists(Table, Rc<dyn Fn(&mut Table)>),
ChangeTable(Table, Rc<dyn Fn(&mut Table)>),
RenameTable(String, String),
DropTable(String),
DropTableIfExists(String),
CustomLine(String),
}
Expand description
An enum set that represents a single change on a database
Variants
Create a new table
Create a new table only if it doesn’t exist yet
Change fields on an existing table
Rename a table
DropTable(String)
Drop an existing table
Tuple Fields of DropTable
0: String
DropTableIfExists(String)
Only drop a table if it exists
Tuple Fields of DropTableIfExists
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 DatabaseChange
impl !Send for DatabaseChange
impl !Sync for DatabaseChange
impl Unpin for DatabaseChange
impl !UnwindSafe for DatabaseChange
Blanket Implementations
Mutably borrows from an owned value. Read more