Minor Changes
8eb25b2Thanks @gajus! - fix: the type ofQueryResult.command(and ofDriverCommand) now includes every command that Postgres reports, e.g.MERGE,SETandCREATE(forCREATE TABLE), not onlyCOPY,DELETE,INSERT,SELECTandUPDATE. The command isnullif the query has no statement (e.g. it consists only of a comment), which was already the case at runtime. Code that handles the commands exhaustively, or that uses the command without checking fornull, may need to be updated.
Patch Changes
-
777d254Thanks @gajus! - fix: the connections that the pool keeps open forminPoolSizeare no longer closed and replaced afteridleTimeout. Besides the pool, the driver closed every connectionidleTimeoutafter it was released, regardless ofminPoolSize, so the pool kept opening new connections to replace them. Now only the pool closes idle connections, and it keepsminPoolSizeconnections open. -
Updated dependencies []:
- @slonik/types@49.14.0
- @slonik/utilities@49.14.0