There is no pool on the current client - knex.js + node + postgresql

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!

+7
postgresql
source share

No one has answered this question yet.

See related questions:

4
running transitions on an elastic beanstalk
4
Where and when to use knex.destroy?
3
Cloud SQL instance connection works locally, but not in App Engine
2
Supertest + Knex.js = there is no pool on the current client
one
Attempt to connect to Mssql server via knex
0
How to make knex use alasql as its own dialect
0
cannot set multiple state to true in knex express node
0
I can not enter my MySQL docker with a complex password
0
How to use the Loopback Datasource Connector as a Knex.js connection
0
Racing using node.js, postgresql and knex.js

All Articles