fix: docs of select

pull/1963/head
YoggieS 9 months ago committed by GitHub
parent 525abc4be5
commit 59ceb94dbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -129,12 +129,12 @@ export default class Database {
* ```ts * ```ts
* // for sqlite & postgres * // for sqlite & postgres
* const result = await db.select( * const result = await db.select(
* "SELECT * from todos WHERE id = $1", id * "SELECT * from todos WHERE id = $1", [ id ]
* ); * );
* *
* // for mysql * // for mysql
* const result = await db.select( * const result = await db.select(
* "SELECT * from todos WHERE id = ?", id * "SELECT * from todos WHERE id = ?", [ id ]
* ); * );
* ``` * ```
*/ */

Loading…
Cancel
Save