1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/packages/unleash-api/lib/db/db-pool.js

12 lines
232 B
JavaScript

'use strict';
const knex = require('knex');
module.exports.createDb = function (databaseConnection) {
return knex({
client: 'pg',
connection: databaseConnection,
pool: { min: 2, max: 20 },
});
};