Skip to content

Commit 0e2625b

Browse files
Kenneth Schnallbrianc
Kenneth Schnall
authored andcommitted
Add semicolons to Pooling example in README.md (brianc#1266)
1 parent 71a1364 commit 0e2625b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ For more information about `config.ssl` check [TLS (SSL) of nodejs](https://node
4444
Let's create a pool in `./lib/db.js` which will be reused across the whole project
4545

4646
```javascript
47-
const pg = require('pg')
47+
const pg = require('pg');
4848

4949
// create a config to configure both pooling behavior
5050
// and client options
@@ -72,8 +72,8 @@ pool.on('error', function (err, client) {
7272
// this is a rare occurrence but can happen if there is a network partition
7373
// between your application and the database, the database restarts, etc.
7474
// and so you might want to handle it and at least log it out
75-
console.error('idle client error', err.message, err.stack)
76-
})
75+
console.error('idle client error', err.message, err.stack);
76+
});
7777

7878
//export the query method for passing queries to the pool
7979
module.exports.query = function (text, values, callback) {

0 commit comments

Comments
 (0)