Expand description
Bounded loading and validation for one app-owned logical database contract.
Structs§
- AppData
Contract - One backend-neutral app schema and its ordered additive migrations.
- Legacy
Adoption - Historical checksum sets prove populated-database adoption without naming a backend or selecting a physical migration file in an app contract.
Functions§
- deserialize_
legacy_ 🔒ledgers - Reads checksum sets from current app contracts and older saved projects. Historical backend labels are discarded; adapters verify physical ledgers.
- legacy_
adoption_ schema - Reconstructs the schema at the end of the historical migration prefix. Later logical migrations must not be required in an existing populated database.
- load_
contract - Reads one verified app-owned contract without following symlinks or oversized input.
- migration_
checksum - Computes the source checksum that every adapter must record in its ledger.
- promote_
identity 🔒 - reidentify_
contract - Reidentifies a source copy as a new app without selecting a database vendor. Historical adoption belongs to the original app’s populated database and must not authorize a different app’s fresh database.
- rewrite_
contract_ 🔒strings - Visits bounded JSON values without rewriting field or entity map keys.
- rewrite_
source_ contract_ strings - Rewrites string values in a fresh source copy and regenerates its migration checksums. This is an authoring operation, never an applied-ledger update.
- schema_
from_ entity_ catalog - Builds a typed projection from the app’s compiled entity contract. Every requested field must declare its logical type; guesses from SQL storage or field names would let one backend interpret app data differently.
- schema_
through_ migrations - Replays declaration changes through one migration boundary without exposing future fields.
- validate_
contract - Validates migration identity, source checksums, and entity creation coverage.
- validate_
json_ record_ copy - Validates historical JSON adoption without selecting a database vendor.
- validate_
migration - Validates one migration before an adapter writes its logical ledger.
- verify_
legacy_ ledger - Checks historical migration evidence before a populated database can be adopted into the logical ledger. A legacy checksum records what actually ran; it is never inferred from the current physical table names.
- widen_
integer_ 🔒to_ decimal - Allows only a lossless integer-to-decimal change outside keys and relations.