I am building an application in node.js and using knex ORM. I have problems with my migrations - I keep getting the error:
Error: There is no pool defined on the current client
Here is my connection configuration:
module.exports = { knex: require('knex')({ client: 'pg', connection: { host: env.DB_HOST, user: env.DB_USER, password: env.DB_USER_PASSWORD, database: env.DB_NAME }, pool: { min: 0, max: 7 }, searchPath: env.DB_SEARCHPATH }) };
Can anyone help?
Thanks in advance!
Trung tran
source share