From 72737131581bd30fbae66b7de00dc88cee08e207 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sun, 5 Mar 2023 08:31:45 -0800 Subject: Update out of date doc --- docs/api/sqlite.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/api/sqlite.md') 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()` -- cgit v1.2.3