Class PostgresClient

A Postgres client with connection pooling.

class PostgresClient ;

Constructors

NameDescription
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

NameDescription
lockConnection () Get connection from the pool.
pickConnection (dg) Use connection from the pool.