Optional caller-supervised manager for many independent database pools.
Managers are addressed by pid or caller-selected name. Tursox starts no singleton, registry, or dynamic atoms.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gracefully removes and closes one entry.
Fetches a pool with an explicit not-found error.
Lists safe entry metadata without options, SQL, values, or secrets.
Returns a pool pid or nil.
Atomically opens one owned database/pool entry.
Starts an isolated manager.
Stops the manager and drains every owned entry.
Types
@type id() :: term()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Gracefully removes and closes one entry.
Fetches a pool with an explicit not-found error.
Lists safe entry metadata without options, SQL, values, or secrets.
Returns a pool pid or nil.
@spec open(GenServer.server(), id(), :memory | String.t(), keyword()) :: {:ok, pid()} | {:error, Tursox.Error.t()}
Atomically opens one owned database/pool entry.
Starts an isolated manager.
Stops the manager and drains every owned entry.