Skip to main content

diff_with

Function diff_with 

Source
pub fn diff_with(
    prev: &Snapshot,
    current: &Snapshot,
    options: &DiffOptions,
) -> Result<Plan, MigrationError>
Available on crate feature std only.
Expand description

Diff two snapshots with explicit generation options.

Use this when you need rename hints (table/column renames) to avoid drop-and-recreate diffs.

ยงErrors

Returns MigrationError::DialectMismatch if the two snapshots use different dialects, or a MigrationError::ConfigError if applying rename hints fails under strict mode.