pub struct DiffConfig {Show 15 fields
pub old_path: PathBuf,
pub new_path: PathBuf,
pub dialect: Option<SqlDialect>,
pub schema_only: bool,
pub data_only: bool,
pub tables: Vec<String>,
pub exclude: Vec<String>,
pub format: DiffOutputFormat,
pub verbose: bool,
pub progress: bool,
pub max_pk_entries: usize,
pub allow_no_pk: bool,
pub ignore_column_order: bool,
pub pk_overrides: HashMap<String, Vec<String>>,
pub ignore_columns: Vec<String>,
}Expand description
Configuration for the diff operation
Fields§
§old_path: PathBufPath to the “old” SQL file
new_path: PathBufPath to the “new” SQL file
dialect: Option<SqlDialect>SQL dialect (auto-detected if None)
schema_only: boolOnly compare schema, skip data
data_only: boolOnly compare data, skip schema
tables: Vec<String>Tables to include (if empty, include all)
exclude: Vec<String>Tables to exclude
format: DiffOutputFormatOutput format
verbose: boolShow verbose row-level details
progress: boolShow progress bar
max_pk_entries: usizeMaximum PK entries to track globally
allow_no_pk: boolDon’t skip tables without PK, use all columns as key
ignore_column_order: boolIgnore column order when comparing schemas
pk_overrides: HashMap<String, Vec<String>>Primary key overrides: table name -> column names
ignore_columns: Vec<String>Column patterns to ignore (glob format: table.column)
Trait Implementations§
Source§impl Clone for DiffConfig
impl Clone for DiffConfig
Source§fn clone(&self) -> DiffConfig
fn clone(&self) -> DiffConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 DiffConfig
impl Debug for DiffConfig
Auto Trait Implementations§
impl Freeze for DiffConfig
impl RefUnwindSafe for DiffConfig
impl Send for DiffConfig
impl Sync for DiffConfig
impl Unpin for DiffConfig
impl UnwindSafe for DiffConfig
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