aboutsummaryrefslogtreecommitdiff
path: root/docs/api/sqlite.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api/sqlite.md')
-rw-r--r--docs/api/sqlite.md2
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()`