ExESDB.SnapshotsReader (ex_esdb v0.11.0)
Provides functions for reading snapshots
Summary
Functions
@spec read_snapshot( store :: atom(), source_uuid :: binary(), stream_uuid :: binary(), version :: non_neg_integer() ) :: {:ok, map()} | {:error, term()}
Description
Reads a snapshot version from the store for the given source and stream uuids
Parameters
store- the store to read fromsource_uuid- the source uuidstream_uuid- the stream uuidversion- the version of the snapshot to read
Returns
{:ok, map()}- the snapshot