Add pass-through of log function to generic-pool. Bump generic-pool version.
This commit is contained in:
parent
0fcf7093d3
commit
ae88278845
@ -14,7 +14,11 @@ module.exports = {
|
||||
//number of rows to return at a time from a prepared statement's
|
||||
//portal. 0 will return all rows at once
|
||||
rows: 0,
|
||||
|
||||
// binary result mode
|
||||
binary: false,
|
||||
|
||||
//Connection pool options - see https://github.com/coopernurse/node-pool
|
||||
//number of connections to use in connection pool
|
||||
//0 will disable connection pooling
|
||||
poolSize: 10,
|
||||
@ -26,6 +30,6 @@ module.exports = {
|
||||
//frequeny to check for idle clients within the client pool
|
||||
reapIntervalMillis: 1000,
|
||||
|
||||
// binary result mode
|
||||
binary: false
|
||||
//pool log function / boolean
|
||||
poolLog: false
|
||||
}
|
||||
|
@ -69,7 +69,8 @@ PG.prototype.connect = function(config, callback) {
|
||||
},
|
||||
max: defaults.poolSize,
|
||||
idleTimeoutMillis: defaults.poolIdleTimeout,
|
||||
reapIntervalMillis: defaults.reapIntervalMillis
|
||||
reapIntervalMillis: defaults.reapIntervalMillis,
|
||||
log: defaults.poolLog
|
||||
});
|
||||
return pool.acquire(cb);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
"author" : "Brian Carlson <brian.m.carlson@gmail.com>",
|
||||
"main" : "./lib",
|
||||
"dependencies" : {
|
||||
"generic-pool" : "1.0.9"
|
||||
"generic-pool" : "1.0.12"
|
||||
},
|
||||
"scripts" : {
|
||||
"test" : "make test-all connectionString=pg://postgres@localhost:5432/postgres",
|
||||
|
Loading…
Reference in New Issue
Block a user