From 0e2625b74ee1c0e57df36795846a490ee4df375b Mon Sep 17 00:00:00 2001 From: Kenneth Schnall Date: Mon, 17 Apr 2017 12:43:09 -0400 Subject: [PATCH] Add semicolons to Pooling example in README.md (#1266) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc39e38ae..2f9d11beb 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ For more information about `config.ssl` check [TLS (SSL) of nodejs](https://node Let's create a pool in `./lib/db.js` which will be reused across the whole project ```javascript -const pg = require('pg') +const pg = require('pg'); // create a config to configure both pooling behavior // and client options @@ -72,8 +72,8 @@ pool.on('error', function (err, client) { // this is a rare occurrence but can happen if there is a network partition // between your application and the database, the database restarts, etc. // and so you might want to handle it and at least log it out - console.error('idle client error', err.message, err.stack) -}) + console.error('idle client error', err.message, err.stack); +}); //export the query method for passing queries to the pool module.exports.query = function (text, values, callback) {