Skip to main content

Module diff

Module diff 

Source
Expand description

What changed, and whether it is safe (15 sections 3.2 and 5).

A tag comparison answers “the same or not”. That answer on its own is the worst error message a database can produce, because the person reading it knows something moved and nothing about what. This module is the other half: it finds the first real difference between two descriptions, says it in a sentence, and says whether it is additive or breaking.

Structs§

Change
The first difference between two shapes.
Provenance
Who created a collection, as the catalogue records it.

Enums§

ChangeKind
The kinds of difference worth naming separately.

Functions§

check
The check a typed handle runs when it opens a collection.
compare
The first difference between two parsed shapes, or None if they agree.
mismatch
Build the mismatch error for two descriptions that differ.