Skip to main content

Module conversion

Module conversion 

Source
Expand description

Lossless value conversion for guarded logical field migrations. Adapters use the same preflight before changing any physical representation.

Functionsยง

apply_declaration
Replays a declaration transition without changing earlier migration identities.
convert_value
Converts one admitted stored value, rejecting truncation, rounding and invented defaults.
normalize_field_change
Reuses lossless conversion while separating an explicitly retired physical check from the logical values admitted before and after the migration.
previous_schema
Validates a field transition and reconstructs the schema used to read historical values.
query
Reads bounded conversion pages in stable identity order without exporting an app.
schema_after_step
Reconstructs the declared schema after one step, excluding later schema changes. Conversion must not inspect fields or tables that the same migration has not created yet.
staging_name
Names an internal staging entity deterministically so interrupted migration can resume.
staging_schema
Builds a complete target-row staging entity to validate fields and cross-field indexes.
statements
Stages typed values through ordinary safe parameter binding without mutating source records.