Libraries
    Preparing search index...
    • Load a SchemaSnapshot from disk.

      Returns an empty snapshot (no tables) when the file does not exist — this is the "first run" case, which causes migrate generate to emit a single migration containing CREATE TABLE for every entity.

      Parameters

      • snapshotPath: string

        Absolute or cwd-relative path to snapshot.json.

      Returns SchemaSnapshot

      The parsed snapshot, or { version: 1, tables: {} } if missing or unreadable.