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 9dcad78 commit 0ca4cc9Copy full SHA for 0ca4cc9
.changes/change-pr-1963.md
@@ -0,0 +1,5 @@
1
+---
2
+"sql-js": patch
3
4
+
5
+Fixed incorrect documentation of the select method in the Database class.
plugins/sql/guest-js/index.ts
@@ -129,12 +129,12 @@ export default class Database {
129
* ```ts
130
* // for sqlite & postgres
131
* const result = await db.select(
132
- * "SELECT * from todos WHERE id = $1", id
+ * "SELECT * from todos WHERE id = $1", [ id ]
133
* );
134
*
135
* // for mysql
136
137
- * "SELECT * from todos WHERE id = ?", id
+ * "SELECT * from todos WHERE id = ?", [ id ]
138
139
* ```
140
*/
0 commit comments