Fix async in sqlite

This commit is contained in:
Colin McDonnell
2023-03-01 12:27:14 -08:00
parent 9a7333dd5e
commit 530cf4caf8

View File

@@ -211,7 +211,7 @@ Queries can contain parameters. These can be numerical (`?1`) or named (`$param`
```ts#Query
const query = db.query("SELECT * FROM foo WHERE bar = $bar");
const results = await query.all({
const results = query.all({
$bar: "bar",
});
```
@@ -230,7 +230,7 @@ Numbered (positional) parameters work too:
```ts#Query
const query = db.query("SELECT ?1, ?2");
const results = await query.all("hello", "goodbye");
const results = query.all("hello", "goodbye");
```
```ts#Results