reckon_db_store_mgr (reckon_db v1.6.0)

View Source

Store manager for reckon-db

Coordinates store lifecycle and provides store-level operations.

Summary

Functions

Get store information

Start the store manager

Types

store_config/0

-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()}.

Functions

get_info(StoreId)

-spec get_info(atom()) -> {ok, map()} | {error, term()}.

Get store information

start_link(Store_config)

-spec start_link(store_config()) -> {ok, pid()} | {error, term()}.

Start the store manager