Skip to content

Commit b9f513d

Browse files
committed
Simpler example
1 parent d2c4c5c commit b9f513d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ const postgres = require('postgres')
2525

2626
const sql = postgres({ ...options }) // will default to the same as psql
2727

28-
const something = await sql`
28+
await sql`
2929
select name, age from users
3030
`
31-
32-
// something = [{ name: 'Murray', age: 68 }, { name: 'Walter', age 78 }]
33-
31+
// > [{ name: 'Murray', age: 68 }, { name: 'Walter', age 78 }]
3432
```
3533

3634
## Connection options `postgres([url], [options])`

0 commit comments

Comments
 (0)