Skip to main content

Module diff

Module diff 

Source
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§

ConstraintChange
A single constraint that changed its value.
ConstraintDiff
Describes how constraints on a single vertex changed.
HyperEdgeChange
Records changes to a hyper-edge’s kind, signature, or parent label.
KindChange
Records a vertex whose kind changed between schema versions.
RecursionPointChange
Records a recursion point whose target vertex changed.
SchemaDiff
A structural diff between two schemas.
SpanChange
Records a span whose left or right vertex changed.
VariantChange
Records a variant whose tag changed between schema versions.

Functions§

apply_renames
Rewrite a SchemaDiff to recognise vertex renames.
diff
Compute a structural diff between two schemas.