Decree.Store.Snapshots.SnapshotData (decree v0.1.0)

Copy Markdown View Source

Snapshot data.

snapshot_version names the row: the version of the snapshot's shape, one row per source and version in versioned_snapshots. A nil snapshot_version is refused with {:error, :invalid_snapshot_version}.

Summary

Types

t()

@type t() :: %Decree.Store.Snapshots.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()
}

Functions

deserialize(snapshot, serializer)

serialize(snapshot, serializer)