1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/packages/unleash-api/lib/db/dbPool.js

11 lines
222 B
JavaScript
Raw Normal View History

2016-06-18 21:53:18 +02:00
'use strict';
const knex = require('knex');
2014-10-21 15:28:10 +02:00
2016-07-02 11:54:50 +02:00
module.exports = function (databaseConnection) {
2014-11-14 15:06:53 +01:00
return knex({
client: 'pg',
connection: databaseConnection,
2016-06-18 21:55:46 +02:00
pool: { min: 2, max: 20 },
2014-11-14 15:06:53 +01:00
});
};