aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-16 17:40:33 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-16 17:40:33 -0700
commite31f44c3d192efa427bb774846b38eb649ed934a (patch)
treeaf4df57d81db26d94d4557d1c88ec192d73d3c45
parent0d12a1f9ee8b19393ae2dd95d8c4007e84a63ca9 (diff)
downloadbun-e31f44c3d192efa427bb774846b38eb649ed934a.tar.gz
bun-e31f44c3d192efa427bb774846b38eb649ed934a.tar.zst
bun-e31f44c3d192efa427bb774846b38eb649ed934a.zip
Update README.md
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 842869ece..49ef2032d 100644
--- a/README.md
+++ b/README.md
@@ -2128,14 +2128,14 @@ db.run(
// Statement object
var statement = db.query("SELECT * FROM foo WHERE count = ?");
-// return all the query results as an array of arrays, binding 2 to "count"
+// return the first row as an object, binding 2 to the count parameter
statement.get(2);
// => { id: 1, greeting: "Welcome to bun!", count: 2 }
// Statement object, but with named parameters
var statement = db.query("SELECT * FROM foo WHERE count = $count");
-// return all the query results as an array of arrays, binding 2 to "count"
+// return the first row as an object, binding 2 to the count parameter
statement.get({ $count: 2 });
// => { id: 1, greeting: "Welcome to bun!", count: 2 }
```