Class PostgresClient
A Postgres client with connection pooling.
class PostgresClient
;
Constructors
Name | Description |
---|---|
this
(connString, connNum, afterStartConnectOrReset)
|
afterStartConnectOrReset is called after connection established |
this
(connFactory, cs, connNum)
|
Useful for external Connection implementation |
this
(connFactory, connNum)
|
Useful for external Connection implementation |
Methods
Name | Description |
---|---|
lockConnection
()
|
Get connection from the pool. |
pickConnection
(dg)
|
Use connection from the pool. |