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
Auto Trait Implementations§
impl !Freeze for Postgres
impl !RefUnwindSafe for Postgres
impl Send for Postgres
impl !Sync for Postgres
impl Unpin for Postgres
impl !UnwindSafe for Postgres
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more