diff options
author | 2023-03-01 12:27:14 -0800 | |
---|---|---|
committer | 2023-03-01 12:27:14 -0800 | |
commit | 530cf4caf8abe4960d833efc6cce71188dea40b2 (patch) | |
tree | 8bd5bef523a0e985f4723b384da2e956d4a79e1e | |
parent | 9a7333dd5e9d34d26aa94a771f7d3c142809f054 (diff) | |
download | bun-530cf4caf8abe4960d833efc6cce71188dea40b2.tar.gz bun-530cf4caf8abe4960d833efc6cce71188dea40b2.tar.zst bun-530cf4caf8abe4960d833efc6cce71188dea40b2.zip |
Fix async in sqlite
-rw-r--r-- | docs/api/sqlite.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api/sqlite.md b/docs/api/sqlite.md index 67debe05b..89a6e27ef 100644 --- a/docs/api/sqlite.md +++ b/docs/api/sqlite.md @@ -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 |