pub struct Migrations { /* private fields */ }
Implementations§
Source§impl Migrations
impl Migrations
pub fn new( store: Box<dyn MigrationStore>, changes: Box<dyn ChangesetStore>, ) -> Migrations
pub fn setup(&self) -> Result<()>
pub fn is_applied(&self, identifier: &Identifier) -> bool
pub fn create_changeset(&self, name: String) -> Result<Box<dyn Changeset + '_>>
pub fn reset(&mut self) -> Result<()>
pub fn rollback(&mut self) -> Result<()>
pub fn migrate(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Migrations
impl !RefUnwindSafe for Migrations
impl !Send for Migrations
impl !Sync for Migrations
impl Unpin for Migrations
impl !UnwindSafe for Migrations
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