SchemaDiff in oxide_sql_core::migrations::diff - Rust

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.

Source§
Source§
Source§
Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

§
§
§
§
§
§