Struct dbmigrate_lib::SqliteDriver
source · pub struct SqliteDriver { /* private fields */ }
Expand description
The SQLite driver
Implementations§
Trait Implementations§
source§impl Driver for Sqlite
impl Driver for Sqlite
source§fn ensure_migration_table_exists(&mut self)
fn ensure_migration_table_exists(&mut self)
A fn that will create a migration table if it doesn’t exist
Otherwise do nothing
source§fn remove_migration_table(&mut self)
fn remove_migration_table(&mut self)
A fn that will delete migration table
source§fn get_current_number(&mut self) -> i32
fn get_current_number(&mut self) -> i32
Get the current migration number from the database
source§fn set_current_number(&mut self, number: i32)
fn set_current_number(&mut self, number: i32)
Set the current migration number in the database