mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Add support for overriding generic pool defaults
This commit is contained in:
parent
3898f5d8b2
commit
7612bbc402
@ -17,10 +17,10 @@ var pools = {
|
||||
}
|
||||
pool = genericPool.Pool({
|
||||
name: name,
|
||||
max: defaults.poolSize,
|
||||
idleTimeoutMillis: defaults.poolIdleTimeout,
|
||||
reapIntervalMillis: defaults.reapIntervalMillis,
|
||||
log: defaults.poolLog,
|
||||
max: clientConfig.poolSize || defaults.poolSize,
|
||||
idleTimeoutMillis: clientConfig.poolIdleTimeout || defaults.poolIdleTimeout,
|
||||
reapIntervalMillis: clientConfig.reapIntervalMillis || defaults.reapIntervalMillis,
|
||||
log: clientConfig.poolLog || defaults.poolLog,
|
||||
create: function(cb) {
|
||||
var client = new pools.Client(clientConfig);
|
||||
client.connect(function(err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user