Enum barrel::DatabaseChange
[−]
[src]
pub enum DatabaseChange { CreateTable(Table, Rc<Fn(&mut Table)>), CreateTableIfNotExists(Table, Rc<Fn(&mut Table)>), ChangeTable(Table, Rc<Fn(&mut Table)>), RenameTable(String, String), DropTable(String), DropTableIfExists(String), }
An enum set that represents a single change on a database
Variants
CreateTable(Table, Rc<Fn(&mut Table)>)
Create a new table
CreateTableIfNotExists(Table, Rc<Fn(&mut Table)>)
Create a new table only if it doesn't exist yet
ChangeTable(Table, Rc<Fn(&mut Table)>)
Change fields on an existing table
RenameTable(String, String)
Rename a table
DropTable(String)
Drop an existing table
DropTableIfExists(String)
Only drop a table if it exists
Trait Implementations
impl Clone for DatabaseChange
[src]
fn clone(&self) -> DatabaseChange
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more