Tay.Storage.Recovery (tay v1.3.3)

Copy Markdown View Source

Non-destructive recovery of existing initialized v1 stores.

Full physical validation precedes semantic replay and pure private reduction. Complete understood events are replayed irrespective of previous caller ACKs. No parse result authorizes repair, skipping, sequence reuse or writable access. The recovered Writer retains ownership and separately activates the candidate.

Summary

Functions

inspect(native, options \\ [])

@spec inspect(Tay.Storage.Native.t() | struct(), keyword()) ::
  {:ok, map()} | {:error, Tay.Storage.Recovery.Error.t()}

replay(native, codec, initial_acc, reducer, options \\ [])

@spec replay(struct(), module(), term(), function(), keyword()) ::
  {:ok, map(), term()} | {:error, Tay.Storage.Recovery.Error.t()}