Skip to content

Commit 1632b40

Browse files
authored
Merge pull request #38 from sorpigal/exit-on-idle
allow the user to set allowExitOnIdle
2 parents a72a46e + 9b5e1f9 commit 1632b40

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/tiny.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class TinyPg {
4343
keepAlive: pool_options.keep_alive,
4444
connectionTimeoutMillis: pool_options.connection_timeout_ms,
4545
idleTimeoutMillis: pool_options.idle_timeout_ms,
46+
allowExitOnIdle: pool_options.allow_exit_on_idle,
4647
application_name: pool_options.application_name,
4748
statement_timeout: pool_options.statement_timeout_ms,
4849
max: pool_options.max,

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface TinyPgOptions {
6262
min?: number
6363
connection_timeout_ms?: number
6464
idle_timeout_ms?: number
65+
allow_exit_on_idle?: boolean;
6566
application_name?: string
6667
statement_timeout_ms?: number
6768
keep_alive?: boolean

0 commit comments

Comments
 (0)