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 fd91092 commit 64907f3Copy full SHA for 64907f3
1 file changed
doc/api/sqlite.md
@@ -382,7 +382,8 @@ sql.run`INSERT INTO users VALUES (1, 'Alice')`;
382
sql.run`INSERT INTO users VALUES (2, 'Bob')`;
383
384
// Using the 'get' method to retrieve a single row.
385
-const user = sql.get`SELECT * FROM users WHERE id = 1`;
+const id = 1;
386
+const user = sql.get`SELECT * FROM users WHERE id = ${id}`;
387
console.log(user); // { id: 1, name: 'Alice' }
388
389
// Using the 'all' method to retrieve all rows.
0 commit comments