Skip to content

Commit 21c6699

Browse files
committed
add reapIntervalMillis to defaults and format the file
1 parent 89e1c66 commit 21c6699

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/defaults.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
module.exports = {
22
//database user's name
33
user: process.env.USER,
4+
45
//name of database to connect
56
database: process.env.USER,
7+
68
//database user's password
79
password: null,
10+
811
//database port
912
port: 5432,
13+
1014
//number of rows to return at a time from a prepared statement's
1115
//portal. 0 will return all rows at once
1216
rows: 0,
17+
1318
//number of connections to use in connection pool
1419
//0 will disable connection pooling
1520
poolSize: 10,
16-
//duration of node-pool timeout
21+
22+
//max milliseconds a client can go unused before it is removed
23+
//from the pool and destroyed
1724
poolIdleTimeout: 30000,
25+
26+
//frequeny to check for idle clients within the client pool
27+
reapIntervalMillis: 1000,
28+
1829
// binary result mode
1930
binary: false
2031
}

0 commit comments

Comments
 (0)