pub struct MigrationRegistry { /* private fields */ }Expand description
MigrationRegistry
MigrationRegistry tracks schema migrations that have completed above the
lower db::migration execution engine.
This first implementation is an explicit owner object so no commit/storage
layout changes are required by the schema-evolution slice.
Implementations§
Source§impl MigrationRegistry
impl MigrationRegistry
Sourcepub fn is_applied(&self, migration_id: EntityName, version: u64) -> bool
pub fn is_applied(&self, migration_id: EntityName, version: u64) -> bool
Return whether the migration id/version is already recorded as complete.
Sourcepub fn record_applied(&mut self, migration_id: EntityName, version: u64)
pub fn record_applied(&mut self, migration_id: EntityName, version: u64)
Record one migration id/version as complete.
Trait Implementations§
Source§impl Clone for MigrationRegistry
impl Clone for MigrationRegistry
Source§fn clone(&self) -> MigrationRegistry
fn clone(&self) -> MigrationRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationRegistry
impl Debug for MigrationRegistry
Source§impl Default for MigrationRegistry
impl Default for MigrationRegistry
Source§fn default() -> MigrationRegistry
fn default() -> MigrationRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MigrationRegistry
impl RefUnwindSafe for MigrationRegistry
impl Send for MigrationRegistry
impl Sync for MigrationRegistry
impl Unpin for MigrationRegistry
impl UnsafeUnpin for MigrationRegistry
impl UnwindSafe for MigrationRegistry
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