docs(sql): docs of frontend Database select method (#1963)

pull/1986/head
YoggieS 9 months ago committed by GitHub
parent 9dcad78f44
commit 0ca4cc914c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"sql-js": patch
---
Fixed incorrect documentation of the select method in the Database class.

@ -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 ]
* );
* ```
*/

Loading…
Cancel
Save