mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Update pg-tests.ts
This commit is contained in:
committed by
GitHub
parent
5b30a7bfe7
commit
3c083f098b
+2
-1
@@ -7,6 +7,7 @@ var conString = "postgres://username:password@localhost/database";
|
||||
pg.types.setTypeParser(20, (val) => Number(val));
|
||||
|
||||
// Client pooling
|
||||
pg.defaults.ssl = true;
|
||||
pg.connect(conString, (err, client, done) => {
|
||||
if (err) {
|
||||
return console.error("Error fetching client from pool", err);
|
||||
@@ -71,4 +72,4 @@ pool.connect(function(err, client, done) {
|
||||
|
||||
pool.on('error', function (err, client) {
|
||||
console.error('idle client error', err.message, err.stack)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user