We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what am i trying to achieve? --> connecting to an older version of postgres (< 9)
which version of sequelize am i using ? --> 6.32
by looking at: https://sequelize.org/releases/#postgresql-support-table i understand pg-native should be the way to go.
so i am initializing sequelize with:
options.dialectModule = require("pg-native")
ref (https://sequelize.org/api/v6/class/src/sequelize.js~sequelize)
but this leads to this error:
this.lib.Client is not a constructor
The text was updated successfully, but these errors were encountered:
the error log seems to have changed:
"Cannot read properties of undefined (reading 'on')"
what i did is using this option:
"require('pg').native"
ref: brianc/node-pg-native#119
Sorry, something went wrong.
Have you tried the following?
new Sequelize({ dialect: 'postgres', native: true, })
We use pg.native instead of pg automatically if that option is provided: https://github.com/sequelize/sequelize
pg.native
pg
Turning this into a documentation issue as I assume that's what went wrong
No branches or pull requests
what am i trying to achieve? --> connecting to an older version of postgres (< 9)
which version of sequelize am i using ? --> 6.32
by looking at: https://sequelize.org/releases/#postgresql-support-table i understand pg-native should be the way to go.
so i am initializing sequelize with:
options.dialectModule = require("pg-native")
ref (https://sequelize.org/api/v6/class/src/sequelize.js~sequelize)
but this leads to this error:
this.lib.Client is not a constructor
The text was updated successfully, but these errors were encountered: