reckon_db_persistence_sup (reckon_db v2.3.1)
View SourcePersistence supervisor for reckon-db
Manages persistence-related components: - Khepri store worker - Streams supervisor (writers/readers) - Persistence worker (batched flush, currently disabled)
Note: Snapshots and Subscriptions stores are facade modules that work directly with Khepri without needing gen_servers.
Summary
Functions
Start the persistence supervisor
Types
-type integrity_config() :: disabled | #{enabled := true, key_source := integrity_key_source()}.
-type integrity_key_source() :: {env_var, EnvName :: binary()} | {sealed_file, Path :: file:filename()}.
-type store_config() :: #store_config{store_id :: atom(), data_dir :: string(), mode :: single | cluster, timeout :: pos_integer(), writer_pool_size :: pos_integer(), reader_pool_size :: pos_integer(), gateway_pool_size :: pos_integer(), options :: map(), integrity :: integrity_config()}.
Functions
-spec start_link(store_config()) -> {ok, pid()} | {error, term()}.
Start the persistence supervisor