Make PostgreSQL pool size configurable
This commit is contained in:
parent
919985bbd2
commit
6e172dd04d
|
@ -29,7 +29,7 @@ module.exports = function(state) {
|
|||
create: function createPostgreSQLBackend(options) {
|
||||
let knex = knexLibrary({
|
||||
client: "pg",
|
||||
pool: { min: 0, max: 32 },
|
||||
pool: { min: 0, max: 32, ... defaultValue(options.pool, {}) },
|
||||
migrations: { tableName: "srap_knex_migrations" },
|
||||
connection: options,
|
||||
... knexSnakeCaseMappers()
|
||||
|
|
Loading…
Reference in a new issue