Skip to content

Commit 672701b

Browse files
committed
improve readme
1 parent b033c14 commit 672701b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

readme.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ const { rows, rowCount } = await sql.query(db)`select * from movies`
179179
// helpers
180180
const movies = await sql.many(db)`select * from movies`
181181
const movie = await sql.one(db)`select * from movies where id = ${id}`
182-
const nbMovie = await sql.count(
183-
db
184-
)`update from movies set name = ${name} where id = ${id}`
182+
const nbMovie = await sql.count(db)`update from movies set name = ${name} where id = ${id}`
185183
```
186184

187185
You can then rewrite the previous `listMoviesByYear` function in a much more concise way 😎

0 commit comments

Comments
 (0)