Update pg-tests.ts

This commit is contained in:
Kagami Sascha Rosylight
2017-02-06 19:41:21 +09:00
committed by GitHub
parent 5b30a7bfe7
commit 3c083f098b
+2 -1
View File
@@ -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)
})
})