diff options
author | 2023-03-05 08:31:45 -0800 | |
---|---|---|
committer | 2023-03-05 08:31:56 -0800 | |
commit | 72737131581bd30fbae66b7de00dc88cee08e207 (patch) | |
tree | 440452ec8ff2559eb82cc891b53dfb9af9c21397 /docs/api/sqlite.md | |
parent | 67422785cc593003813d500c13919d35cd4259b0 (diff) | |
download | bun-72737131581bd30fbae66b7de00dc88cee08e207.tar.gz bun-72737131581bd30fbae66b7de00dc88cee08e207.tar.zst bun-72737131581bd30fbae66b7de00dc88cee08e207.zip |
Update out of date doc
Diffstat (limited to 'docs/api/sqlite.md')
-rw-r--r-- | docs/api/sqlite.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api/sqlite.md b/docs/api/sqlite.md index 89a6e27ef..d1f312984 100644 --- a/docs/api/sqlite.md +++ b/docs/api/sqlite.md @@ -140,7 +140,7 @@ query.get({ $message: "Hello world" }); // => { $message: "Hello world" } ``` -Internally, this calls [`sqlite3_reset`](https://www.sqlite.org/capi3ref.html#sqlite3_reset) and calls [`sqlite3_step`](https://www.sqlite.org/capi3ref.html#sqlite3_step) once. Stepping through all the rows is not necessary when you only want the first row. +Internally, this calls [`sqlite3_reset`](https://www.sqlite.org/capi3ref.html#sqlite3_reset) followed by [`sqlite3_step`](https://www.sqlite.org/capi3ref.html#sqlite3_step) until it no longer returns `SQLITE_ROW`. If the query returns no rows, `undefined` is returned. ### `.run()` |