pg-promise v10.3.4 Release Notes
Release Date: 2020-01-12 // over 4 years ago-
- ๐ Fixed #682
- ๐ Minor code refactoring + documentation updates
๐ There has been a discrepancy with the driver, as it's undergone many changes when it comes to supporting connection timeouts.
๐ Property
connect_timeout
now has been removed from thedefaults
of the driver, and propertyconnectionTimeoutMillis
added to the connection parameters, which is the only correct way to set the connection timeout:const db = pgp({ database: 'my-db'/\* other connection properties \*/connectionTimeoutMillis: 2000 // set connection timeout to 2 seconds});
Note that this change affects only TypeScript clients.