mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-27 11:56:05 +02:00
docs(sql): docs of frontend Database select method (#1963)
This commit is contained in:
@@ -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 ]
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user