We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b033c14 commit 672701bCopy full SHA for 672701b
readme.md
@@ -179,9 +179,7 @@ const { rows, rowCount } = await sql.query(db)`select * from movies`
179
// helpers
180
const movies = await sql.many(db)`select * from movies`
181
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}`
+const nbMovie = await sql.count(db)`update from movies set name = ${name} where id = ${id}`
185
```
186
187
You can then rewrite the previous `listMoviesByYear` function in a much more concise way 😎
0 commit comments