Skip to content

Commit 64907f3

Browse files
0hmXgeeksilva97
andauthored
Update doc/api/sqlite.md
Co-authored-by: Edy Silva <[email protected]>
1 parent fd91092 commit 64907f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

doc/api/sqlite.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ sql.run`INSERT INTO users VALUES (1, 'Alice')`;
382382
sql.run`INSERT INTO users VALUES (2, 'Bob')`;
383383

384384
// Using the 'get' method to retrieve a single row.
385-
const user = sql.get`SELECT * FROM users WHERE id = 1`;
385+
const id = 1;
386+
const user = sql.get`SELECT * FROM users WHERE id = ${id}`;
386387
console.log(user); // { id: 1, name: 'Alice' }
387388

388389
// Using the 'all' method to retrieve all rows.

0 commit comments

Comments
 (0)