ExESDB.Snapshots (ex_esdb v0.0.13-alpha)

Provides functions for working with snapshots

Summary

Functions

Delete a snapshot of the current state of the event store.

Read a snapshot of the current state of the event store.

Record a snapshot of the current state of the event store.

Functions

delete_snapshot(store, source_uuid)

@spec delete_snapshot(
  store :: any(),
  source_uuid :: any()
) :: :ok | {:error, any()}

Delete a snapshot of the current state of the event store.

read_snapshot(store, source_uuid)

@spec read_snapshot(
  store :: any(),
  source_uuid :: any()
) :: {:ok, ExESDB.Schema.SnapshotRecord.t()} | {:error, any()}

Read a snapshot of the current state of the event store.

record_snapshot(store, snapshot_record)

@spec record_snapshot(
  store :: any(),
  snapshot_record :: any()
) :: :ok | {:error, any()}

Record a snapshot of the current state of the event store.