Member Junction
    Preparing search index...

    Replay of MJ: Record Changes rows, and the snapshots that start a record's history.

    Index

    Constructors

    Methods

    • Pure: index the change rows, run the continuity check against the current values, and expose replay. changes is the history of the requested keys, and coverage and continuity are computed over exactly those keys: a caller holding an entity-wide read hands in only the requested keys' rows. current is keyed by the lower-cased record key, as KeyedReader.ReadPresentByKeys produces it; a hard-deleted record has no current row, so its Delete row stands in for it in the continuity check. The entity's field types decide how two values of a field compare (see comparable).

      Parameters

      Returns EntityHistory

    • The lower-cased keys whose latest change row is a Delete: records the history says were deleted, so a missing current row is explained rather than a short read. Asked only about keys with no current row, so each key's last instant is gone after it (a Delete there ends it) and earlier instants rank by the row that follows (see indexByKey).

      Parameters

      Returns ReadonlySet<string>

    • Starts the history of every record of entityName that has no complete Create or Snapshot change row, by saving one Snapshot row holding the record as stored now. This is how an entity loaded before change tracking enters coverage: its history starts now, so decision dates before now are still refused. Reads and saves run on provider; returns the number of snapshots written.

      Parameters

      Returns Promise<number>