Skip to content

Commit 1b56d15

Browse files
committed
make 1st example not hang in readme
1 parent 460d5d0 commit 1b56d15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pg.connect(conString, function(err, client) {
2424
client.query("SELECT NOW() as when", function(err, result) {
2525
console.log("Row count: %d",result.rows.length); // 1
2626
console.log("Current year: %d", result.rows[0].when.getFullYear());
27+
pg.end(); //terminate the client pool, disconnecting all clients
2728
});
2829
});
2930
```

0 commit comments

Comments
 (0)