pub struct MigrateOptions {
pub verify: bool,
pub plan: bool,
pub safe: bool,
pub repair: bool,
}Fields§
§verify: boolCheck migration integrity without applying changes; exits non-zero on any finding
Beyond the pending summary, this compares the tracking table against the local migration files: hash drift (an applied migration whose file was edited afterwards), applied rows with no local migration, duplicate tracking rows, and interrupted (dirty) migrations.
plan: boolShow what migrate would do without applying changes
Prints the applied/pending summary and pending tags. Integrity
findings are shown as warnings but do not fail the command — use
--verify for a hard integrity gate.
safe: boolRun the --verify integrity checks first, then apply only if they pass
repair: boolReconcile a migration that was interrupted mid-apply, then continue
Statements of the interrupted migration are classified against the live
schema: CREATE TABLE / CREATE [UNIQUE] INDEX / CREATE VIEW /
CREATE TYPE … AS ENUM statements whose object already exists with a
matching definition are skipped, the rest are executed. Anything that
cannot be proven either way aborts with a manual-resolution list.
MySQL does not support automatic repair because DDL may have committed
partially; inspect and reconcile its schema manually instead.
Trait Implementations§
Source§impl Args for MigrateOptions
impl Args for MigrateOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for MigrateOptions
impl Clone for MigrateOptions
impl Copy for MigrateOptions
Source§impl Debug for MigrateOptions
impl Debug for MigrateOptions
Source§impl Default for MigrateOptions
impl Default for MigrateOptions
Source§impl FromArgMatches for MigrateOptions
impl FromArgMatches for MigrateOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.