Decree.EventStore.SnapshotData (decree v0.1.0)

Copy Markdown View Source

Snapshot data

snapshot_version is the version of the snapshot's shape, and with the source names its row: code at two versions keeps two rows. A nil snapshot_version is refused with {:error, :invalid_snapshot_version}.

Summary

Types

t()

@type t() :: %Decree.EventStore.SnapshotData{
  created_at: DateTime.t(),
  data: binary(),
  metadata: binary(),
  snapshot_version: non_neg_integer() | nil,
  source_type: String.t(),
  source_uuid: String.t(),
  source_version: non_neg_integer()
}