pub struct MysqlDriver { /* private fields */ }
Expand description
The MySQL driver
Implementations§
Trait Implementations§
Source§impl Driver for Mysql
impl Driver for Mysql
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 Mysql
impl RefUnwindSafe for Mysql
impl Send for Mysql
impl Sync for Mysql
impl Unpin for Mysql
impl UnwindSafe for Mysql
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