Expand description
Structural diffing of two schemas.
diff compares an old and new schema, producing a SchemaDiff
that records every added, removed, or modified element. The diff is
purely structural; it does not yet classify changes as breaking or
non-breaking (that is handled by crate::classify()).
Structs§
- Constraint
Change - A single constraint that changed its value.
- Constraint
Diff - Describes how constraints on a single vertex changed.
- Hyper
Edge Change - Records changes to a hyper-edge’s kind, signature, or parent label.
- Kind
Change - Records a vertex whose kind changed between schema versions.
- Recursion
Point Change - Records a recursion point whose target vertex changed.
- Schema
Diff - A structural diff between two schemas.
- Span
Change - Records a span whose left or right vertex changed.
- Variant
Change - Records a variant whose tag changed between schema versions.
Functions§
- apply_
renames - Rewrite a
SchemaDiffto recognise vertex renames. - diff
- Compute a structural diff between two schemas.