18 lines
369 B
JavaScript
18 lines
369 B
JavaScript
|
var Client = require('./client');
|
||
|
var util = require('util');
|
||
|
var Pool = require('pg-pool');
|
||
|
|
||
|
module.exports = function(Client) {
|
||
|
var BoundPool = function(options) {
|
||
|
var config = { Client: Client };
|
||
|
for (var key in options) {
|
||
|
config[key] = options[key];
|
||
|
}
|
||
|
Pool.call(this, config);
|
||
|
};
|
||
|
|
||
|
util.inherits(BoundPool, Pool);
|
||
|
|
||
|
return BoundPool;
|
||
|
};
|