Struct dbmigrate_lib::PostgresDriver
source · pub struct PostgresDriver { /* private fields */ }
Expand description
The PostgreSQL driver
Implementations§
Trait Implementations§
source§impl Driver for Postgres
impl Driver for Postgres
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