reckon_db_snapshots_store (reckon_db v1.6.0)
View SourceSnapshots store for reckon-db
Manages snapshot persistence and retrieval directly via Khepri. Snapshots are stored at path [snapshots, StreamId, PaddedVersion].
Summary
Functions
Delete all snapshots for a stream
Delete a specific snapshot version
Check if any snapshot exists for a stream
Check if a specific snapshot version exists
Get the latest snapshot for a stream
Get a specific snapshot version for a stream
Get the latest snapshot for a stream
List all snapshots for a stream
Store a snapshot
Types
Functions
Delete all snapshots for a stream
-spec delete(store_id(), binary(), non_neg_integer()) -> ok | {error, term()}.
Delete a specific snapshot version
Check if any snapshot exists for a stream
-spec exists(store_id(), binary(), non_neg_integer()) -> boolean().
Check if a specific snapshot version exists
Get the latest snapshot for a stream
-spec get(store_id(), binary(), non_neg_integer()) -> snapshot() | undefined.
Get a specific snapshot version for a stream
Get the latest snapshot for a stream
List all snapshots for a stream
Store a snapshot