Trait schemamama_rusqlite::SqliteMigration [−][src]
pub trait SqliteMigration: Migration {
fn up(&self, conn: &SqliteConnection) -> SqliteResult<()> { ... }
fn down(&self, conn: &SqliteConnection) -> SqliteResult<()> { ... }
}
Expand description
A migration to be used within a PostgreSQL connection.
Provided methods
fn up(&self, conn: &SqliteConnection) -> SqliteResult<()>
fn up(&self, conn: &SqliteConnection) -> SqliteResult<()>
Called when this migration is to be executed. This function has an empty body by default, so its implementation is optional.
fn down(&self, conn: &SqliteConnection) -> SqliteResult<()>
fn down(&self, conn: &SqliteConnection) -> SqliteResult<()>
Called when this migration is to be reversed. This function has an empty body by default, so its implementation is optional.