We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40c08cb commit efd4d34Copy full SHA for efd4d34
types/pg-pool/pg-pool-tests.ts
@@ -23,6 +23,7 @@ const pool2 = new Pool({
23
port: 5432,
24
ssl: true,
25
max: 20, // set pool max size to 20
26
+ min: 4, // set min pool size to 4
27
idleTimeoutMillis: 1000, // close idle clients after 1 second
28
});
29
types/pg/index.d.ts
@@ -46,6 +46,7 @@ export interface Defaults extends ClientConfig {
46
export interface PoolConfig extends ClientConfig {
47
// properties from module 'pg-pool'
48
max?: number | undefined;
49
+ min?: number | undefined;
50
idleTimeoutMillis?: number | undefined | null;
51
log?: ((...messages: any[]) => void) | undefined;
52
Promise?: PromiseConstructorLike | undefined;
0 commit comments