brianc / node-pg-native

Native (C/C++) bindings to PostgreSQL with sync and async options.
247 stars 44 forks source link

incompatibility issue with sequelize v6 ? #119

Closed dberardo-com closed 1 year ago

dberardo-com commented 1 year ago

i am getting this error: this.lib.Client is not a constructor when using pg-native with sequelize. more details here: https://github.com/sequelize/website/issues/734

is this normal ?

charmander commented 1 year ago

This package is used via pg. Try pg.native (where pg = require('pg') or equivalent).

dberardo-com commented 1 year ago

according to this table pg-native is supported by sequelize: https://sequelize.org/releases/

has that changed?

charmander commented 1 year ago

pg.native is how pg-native is exposed with a common API.

dberardo-com commented 1 year ago

thanks a lot, now the error has changed:

Cannot read properties of undefined (reading 'on')

probably this is due to some join operation i am using in the query ? :-/