Skip to main content

Module autodetector

Module autodetector 

Source
Expand description

Deterministic schema diff: diff compares two ProjectStates.

Renames are emitted only when listed in RenameHints. Without a hint a renamed field is RemoveField + AddField (the column is dropped and recreated; data is not preserved) and a renamed model is DeleteModel + CreateModel. Those unhinted pairs are refused when the dropped and added table or column have the same shape.

Structs§

RenameHints
Explicit rename pairs, plus explicit drop approvals.

Functions§

diff
Operations that turn from into to, in a deterministic order:
diff_with
diff honouring explicit field- and model-rename hints.