Changelog
7.0.0
4.x
.pg.connect
pg.end
and pg.cancel
singleton methods.Client#connect(callback)
now returns undefined
. It used to return an event emitter.2.x
.2.x
.SELECT 1; SELECT 2;
are now returned as an array of results instead of a single result with 1 array containing rows from both queries.Please see here for a migration guide
Client#connect() => Promise<void>
and Client#end() => Promise<void>
calls. Promises are now returned from all async methods on clients if and only if no callback was supplied to the method.connectionTimeoutMillis
to pg-pool.