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

This commit is contained in:
YoggieS
2024-10-30 10:53:04 +01:00
committed by GitHub
parent 9dcad78f44
commit 0ca4cc914c
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -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 ]
* );
* ```
*/