You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method insert() would be undefined on all instances of this custom class. If you were to do the exact same thing with pg.Client, it works as expected.
The text was updated successfully, but these errors were encountered:
pg doesn’t quite export the Pool type. Since Pool is an ES6 class, though, there’s no nice way to let BoundPool inherit from it instead while maintaining backwards compatibility (allowing pg.Pool() to be called without new).
You can access pg-pool directly instead (making sure to add a dependency on it in your package.json):
If you were to create a class that inherits
pg.Pool
like so:The method
insert()
would be undefined on all instances of this custom class. If you were to do the exact same thing withpg.Client
, it works as expected.The text was updated successfully, but these errors were encountered: