pub struct MigrationPlan {
pub applied_count: usize,
pub pending_count: usize,
pub pending_migrations: Vec<String>,
pub pending_statements: usize,
pub findings: Vec<String>,
}Expand description
Planned migration execution details.
Fields§
§applied_count: usizeNumber of already-applied migrations found in the database metadata table.
pending_count: usizeNumber of pending migrations found locally.
pending_migrations: Vec<String>Pending migration tags in execution order.
pending_statements: usizeTotal number of non-empty SQL statements in pending migrations.
findings: Vec<String>Integrity findings: hash drift between applied rows and local files,
applied rows with no local migration, duplicate tracking rows, and
interrupted (dirty) migrations. --plan reports these as warnings;
--verify and --safe treat any finding as failure.
Trait Implementations§
Source§impl Clone for MigrationPlan
impl Clone for MigrationPlan
Auto Trait Implementations§
impl Freeze for MigrationPlan
impl RefUnwindSafe for MigrationPlan
impl Send for MigrationPlan
impl Sync for MigrationPlan
impl Unpin for MigrationPlan
impl UnsafeUnpin for MigrationPlan
impl UnwindSafe for MigrationPlan
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