Skip to content

Commit 088227c

Browse files
committed
docs: update README
1 parent 56f4f8a commit 088227c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ await db.execute('INSERT INTO users VALUES (?1, ?2)', [
6868
/** select count */
6969
const rows = await db.select<Array<{ count: number }>>('SELECT COUNT(*) as count FROM users')
7070

71-
/** select with params */
71+
/** select with param */
7272
const rows = await db.select<Array<{ name: string }>>('SELECT name FROM users WHERE age > ?', [20])
7373

74-
const rows = await db.select<Array<any>>('SELECT * FROM users LIMIT ?1 OFFSET ?2', [10, 0])
74+
/** select with params */
75+
const rows = await db.select<Array<{ name: string, age: number }>>('SELECT * FROM users LIMIT ?1 OFFSET ?2', [10, 0])
7576
```
7677

7778
## License

0 commit comments

Comments
 (0)