Returns the current configuration.
Whether the pool is currently initialized and connected.
Returns the active connection pool. Throws if not initialized.
Acquires a client from the pool for manual connection management.
Closes the connection pool and releases all connections. If the pool was shared via InitializeWithExistingPool(), this is a no-op since the pool lifecycle is managed by the original owner.
Race-safe: clears _pool before awaiting pool.end() so concurrent
callers (e.g. parallel Refresh() → Config() → Initialize() paths
during mj sync push --parallel-batch-size > 1) can't both observe a
non-null _pool and both invoke pool.end() on the same pool, which
pg-pool rejects with Called end on pool more than once. The local
pool reference keeps the awaited end() bound to the correct instance.
Initializes the connection pool with the given configuration.
Sets an existing pool for this manager to use without creating a new one. The manager will NOT close a shared pool when Close() is called. This is used for per-request providers that share the primary pool.
Executes a query using the pool directly (auto-acquires and releases).
Optionalvalues: unknown[]
Manages the PostgreSQL connection pool lifecycle. Provides a clean API for acquiring and releasing connections.