From 530cf4caf8abe4960d833efc6cce71188dea40b2 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 1 Mar 2023 12:27:14 -0800 Subject: Fix async in sqlite --- docs/api/sqlite.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/api/sqlite.md') 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 -- cgit v1.2.3