Skip to content

Commit

Permalink
Add semicolons to Pooling example in README.md (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Schnall authored and brianc committed Apr 17, 2017
1 parent 71a1364 commit 0e2625b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0e2625b

Please sign in to comment.