Optional DBConnection pool whose workers derive connections from one database.
Starting a pool with a path owns exactly one database resource. Passing an
existing Tursox.Database leaves it caller-owned unless own_database: true.
Summary
Functions
Closes a prepared query on one checked-out worker.
Executes a write/DDL statement through DBConnection.
Executes a query returned by prepare/4.
Returns redacted ownership and database metadata.
Returns the underlying DBConnection pool PID.
Prepares a reusable query through DBConnection.
Executes a bounded materialized query through DBConnection.
Starts a shared-handle DBConnection pool.
Stops the pool, drains workers, and closes an owned database.
Returns a checkout-bound bounded DBConnection stream.
Runs a DBConnection transaction with the requested Tursox mode.
Functions
Closes a prepared query on one checked-out worker.
@spec execute(GenServer.server() | DBConnection.t(), String.t(), term(), keyword()) :: {:ok, Tursox.Result.t()} | {:error, Exception.t()}
Executes a write/DDL statement through DBConnection.
Executes a query returned by prepare/4.
Returns redacted ownership and database metadata.
@spec pool(GenServer.server() | DBConnection.t()) :: pid() | DBConnection.t()
Returns the underlying DBConnection pool PID.
@spec prepare( GenServer.server() | DBConnection.t(), String.t(), :query | :execute, keyword() ) :: {:ok, Tursox.Query.t()} | {:error, Exception.t()}
Prepares a reusable query through DBConnection.
@spec query(GenServer.server() | DBConnection.t(), String.t(), term(), keyword()) :: {:ok, Tursox.Result.t()} | {:error, Exception.t()}
Executes a bounded materialized query through DBConnection.
@spec start_link(keyword()) :: GenServer.on_start()
Starts a shared-handle DBConnection pool.
@spec stop(GenServer.server(), timeout()) :: :ok
Stops the pool, drains workers, and closes an owned database.
@spec stream(GenServer.server() | DBConnection.t(), String.t(), term(), keyword()) :: Enumerable.t()
Returns a checkout-bound bounded DBConnection stream.
Runs a DBConnection transaction with the requested Tursox mode.