Expand description
Schema diff engine for auto-migration generation.
Compares an “old” (current DB) and “new” (desired from code)
SchemaSnapshot and produces a Vec<Operation> representing
the DDL changes needed to migrate from old to new.
Structs§
- Schema
Diff - Result of comparing two schema snapshots.
Enums§
- Ambiguous
Change - A change that cannot be automatically resolved and requires user intervention.
Functions§
- auto_
diff_ schema - Compares two full schema snapshots and produces the operations
needed to migrate from
currenttodesired. - auto_
diff_ table - Compares a single table’s current snapshot against the desired
schema derived from a
#[derive(Table)]struct.