Postgres module

acquire

procedure · 1 overloadsince 0.27.0Source

A connection for this fiber alone, until release. Waits for one when max_size are in use, up to acquire_timeout (and any Io.with_deadline around the call).

acquire :: (pool: *Pool) -> (*Connection, Pg_Error)

A connection for this fiber alone, until release. Waits for one when max_size are in use, up to acquire_timeout (and any Io.with_deadline around the call).

Parameters

pool: *Pool
the pool.

Returns

See also