barrel_vectordb_store_sup (barrel_vectordb v2.2.0)

View Source

Dynamic supervisor for vector store processes.

Mirrors barrel_db_sup for the docdb side: stores start under a simple_one_for_one supervisor (temporary children) instead of being linked to the caller, so a composed database opened on behalf of a manager is not tied to the transient process that opened it. The store is found by name through barrel_vectordb_registry; a crash of a temporary child is not auto-restarted, the owner reopens on next use (same contract as the docdb server).

Summary

Functions

Start the store supervisor.

Start a vector store under the supervisor (parent is the supervisor, not the caller). Config is the barrel_vectordb store config, including name.

Functions

init(_)

-spec init([]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.

start_link()

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

Start the store supervisor.

start_store(Config)

-spec start_store(map()) -> {ok, pid()} | {error, term()}.

Start a vector store under the supervisor (parent is the supervisor, not the caller). Config is the barrel_vectordb store config, including name.