Expand description
Native Rust sidecar loader for migration files.
Reads NNNN_<name>.json sidecar files that the generator writes beside
the corresponding NNNN_<name>.py source files. The sidecar carries the
serde MigrationSpec produced from the same op list as the .py — so
the Rust CLI can hydrate a MigrationGraph without importing Python.
The loader is pure std::fs + serde_json; it opens no TypeDB
transaction and has no dependency on type_bridge_orm (invariant 7).
Functions§
- load_
dir - Walk
dirand load allNNNN_*.jsonsidecar files into a sortedMigrationGraph. - load_
dir_ checked - Walk
dirand load allNNNN_*.jsonsidecar files into a sortedMigrationGraph, then validate that each sidecar’s embedded source identity agrees with the current.pyfile. - load_
sidecar - Load the sidecar spec for a given
.pymigration path.