Update README.md (#2671)

Change `name` to `now` for time column
This commit is contained in:
Steffen Weidenhaus 2021-12-17 17:15:26 +11:00 committed by GitHub
parent 97eea2d7a4
commit 2c3adf25f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ because its so common to just run a query and return the client to the pool afte
var pool = new Pool()
var time = await pool.query('SELECT NOW()')
var name = await pool.query('select $1::text as name', ['brianc'])
console.log(name.rows[0].name, 'says hello at', time.rows[0].name)
console.log(name.rows[0].name, 'says hello at', time.rows[0].now)
```
you can also use a callback here if you'd like: