make 1st example not hang in readme
This commit is contained in:
parent
460d5d0ab0
commit
1b56d154a7
@ -24,6 +24,7 @@ pg.connect(conString, function(err, client) {
|
||||
client.query("SELECT NOW() as when", function(err, result) {
|
||||
console.log("Row count: %d",result.rows.length); // 1
|
||||
console.log("Current year: %d", result.rows[0].when.getFullYear());
|
||||
pg.end(); //terminate the client pool, disconnecting all clients
|
||||
});
|
||||
});
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user