Module
Effect.Aff.Postgres.Pool
- Package
- purescript-postgresql
- Repository
- cakekindel/purescript-postgresql
#connect Source
connect :: Pool -> Except Aff Client
Acquires a client from the pool.
- If there are idle clients in the pool one will be returned to the callback on process.nextTick.
- If the pool is not full but all current clients are checked out a new client will be created & returned to this callback.
- If the pool is 'full' and all clients are currently checked out will wait in a FIFO queue until a client becomes available by it being released back to the pool.
Re-exports from Effect.Postgres.Pool
#PoolConfigRaw Source
data PoolConfigRaw
FFI type for import('pg').PoolConfig
#clientWaitingCount Source
clientWaitingCount :: Pool -> Int
The number of queued requests waiting on a client when all clients are checked out. It can be helpful to monitor this number to see if you need to adjust the size of the pool.
#clientIdleCount Source
clientIdleCount :: Pool -> Int
The number of clients which are not checked out but are currently idle in the pool.
#clientCount Source
clientCount :: Pool -> Int
The total number of clients existing within the pool.
- Modules
- Control.
Monad. Postgres - Control.
Monad. Postgres. Base - Control.
Monad. Postgres. Cursor - Control.
Monad. Postgres. Session - Data.
Postgres - Data.
Postgres. Custom - Data.
Postgres. Custom. Enum - Data.
Postgres. Interval - Data.
Postgres. Query - Data.
Postgres. Query. Builder - Data.
Postgres. Range - Data.
Postgres. Raw - Data.
Postgres. Result - Data.
Postgres. Unresult - Effect.
Aff. Postgres. Client - Effect.
Aff. Postgres. Pool - Effect.
Postgres. Client - Effect.
Postgres. Error - Effect.
Postgres. Error. Common - Effect.
Postgres. Error. Except - Effect.
Postgres. Error. RE - Effect.
Postgres. Pool - Node.
FS. PinnedVersion - Pipes.
Postgres