pub struct MigrationManager;Expand description
Coordinates the execution, rollback, and status reporting of database migrations.
Implementations§
Source§impl MigrationManager
impl MigrationManager
Sourcepub fn ensure_migrations_table(executor: &mut dyn Executor) -> OrmResult<()>
pub fn ensure_migrations_table(executor: &mut dyn Executor) -> OrmResult<()>
Creates the internal __chopin_migrations ledger table if it does not exist.
Sourcepub fn status(
executor: &mut dyn Executor,
migrations: &[&dyn Migration],
) -> OrmResult<Vec<MigrationStatus>>
pub fn status( executor: &mut dyn Executor, migrations: &[&dyn Migration], ) -> OrmResult<Vec<MigrationStatus>>
Returns the status of each migration (applied or pending).
Auto Trait Implementations§
impl Freeze for MigrationManager
impl RefUnwindSafe for MigrationManager
impl Send for MigrationManager
impl Sync for MigrationManager
impl Unpin for MigrationManager
impl UnsafeUnpin for MigrationManager
impl UnwindSafe for MigrationManager
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