pub struct SchemaDiff {
pub operations: Vec<Operation>,
pub ambiguous: Vec<AmbiguousChange>,
pub warnings: Vec<DiffWarning>,
}Expand description
Result of comparing two schema snapshots.
The migration operations to apply.
Changes that may be renames and need user confirmation.
Informational warnings (destructive changes that require manual intervention, column order changes, etc.).
Source§
Source
Returns true if there are no changes at all (no ops,
no ambiguous changes, and no warnings).
Source
Convenience: generates SQL for every operation using the given dialect.
Source
Attempts to reverse the entire diff. Returns None if any
operation is non-reversible.
Source
Returns true if every operation is reversible.
Source
Returns references to the non-reversible operations.