MCPcopy Create free account
hub / github.com/denodrivers/postgres / constructor

Method constructor

pool.ts:97–108  ·  view source on GitHub ↗

* A class that manages connection pooling for PostgreSQL clients

(
    connection_params: ClientOptions | ConnectionString | undefined,
    size: number,
    lazy: boolean = false,
  )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

#initializeMethod · 0.95
createParamsFunction · 0.90

Tested by

no test coverage detected