Skip to main content

Module migrate

Module migrate 

Source
Expand description

One-shot, streaming, in-place migration from schema_version 1 rows to schema_version 2.

RAM contract: pure streaming. Read one line, parse, convert, write one line to a temp file. Bounded by a single line’s allocation regardless of file size. Atomic rename at the end.

Functions§

migrate_legacy_jsonl_in_place
Detect-and-migrate. No-op when the file is already at schema_version 2.