Skip to content

Commit

Permalink
docs(sql): docs of frontend Database select method (#1963)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoggys authored Oct 30, 2024
1 parent 9dcad78 commit 0ca4cc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/change-pr-1963.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sql-js": patch
---

Fixed incorrect documentation of the select method in the Database class.
4 changes: 2 additions & 2 deletions plugins/sql/guest-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ export default class Database {
* ```ts
* // for sqlite & postgres
* const result = await db.select(
* "SELECT * from todos WHERE id = $1", id
* "SELECT * from todos WHERE id = $1", [ id ]
* );
*
* // for mysql
* const result = await db.select(
* "SELECT * from todos WHERE id = ?", id
* "SELECT * from todos WHERE id = ?", [ id ]
* );
* ```
*/
Expand Down

0 comments on commit 0ca4cc9

Please sign in to comment.