mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Fix async in sqlite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user