* A class that manages connection pooling for PostgreSQL clients
(
connection_params: ClientOptions | ConnectionString | undefined,
size: number,
lazy: boolean = false,
)
| 95 | * A class that manages connection pooling for PostgreSQL clients |
| 96 | */ |
| 97 | constructor( |
| 98 | connection_params: ClientOptions | ConnectionString | undefined, |
| 99 | size: number, |
| 100 | lazy: boolean = false, |
| 101 | ) { |
| 102 | this.#connection_params = createParams(connection_params); |
| 103 | this.#lazy = lazy; |
| 104 | this.#size = size; |
| 105 | |
| 106 | // This must ALWAYS be called the last |
| 107 | this.#ready = this.#initialize(); |
| 108 | } |
| 109 | |
| 110 | // TODO |
| 111 | // Rename to getClient or similar |
nothing calls this directly
no test coverage detected