aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-oo1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-15 02:27:48 +0000
committerstephan <stephan@noemail.net>2022-09-15 02:27:48 +0000
commit409505c74361a5a3c49171f2eb194a3b7a1ef10c (patch)
treea4dd808b32e5dd126a9b0fb9bd96801187587690 /ext/wasm/api/sqlite3-api-oo1.js
parent5b9150079606c31741572ef2aca5e39e8f7f9b56 (diff)
downloadsqlite-409505c74361a5a3c49171f2eb194a3b7a1ef10c.tar.gz
sqlite-409505c74361a5a3c49171f2eb194a3b7a1ef10c.zip
Clean up some JS documentation.
FossilOrigin-Name: 925fdbfc6c1f9f06951346bc0d4fb81ffb5797d5f1123728931973f6cb1a0efa
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r--ext/wasm/api/sqlite3-api-oo1.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js
index 8280204d6..6a8c22939 100644
--- a/ext/wasm/api/sqlite3-api-oo1.js
+++ b/ext/wasm/api/sqlite3-api-oo1.js
@@ -505,20 +505,19 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
- `.callback` = a function which gets called for each row of
the result set, but only if that statement has any result
- _rows_. The callback's "this" is the options object. The second
- argument passed to the callback is always the current Stmt
- object (so that the caller may collect column names, or
- similar). The 2nd argument to the callback is always the Stmt
- instance, as it's needed if the caller wants to fetch the
- column names or some such (noting that they could also be
- fetched via `this.columnNames`, if the client provides the
- `columnNames` option).
+ _rows_. The callback's "this" is the options object, noting
+ that this function synthesizes one if the caller does not pass
+ one to exec(). The second argument passed to the callback is
+ always the current Stmt object, as it's needed if the caller
+ wants to fetch the column names or some such (noting that they
+ could also be fetched via `this.columnNames`, if the client
+ provides the `columnNames` option).
ACHTUNG: The callback MUST NOT modify the Stmt object. Calling
any of the Stmt.get() variants, Stmt.getColumnName(), or
similar, is legal, but calling step() or finalize() is
- not. Routines which are illegal in this context will trigger an
- exception.
+ not. Member methods which are illegal in this context will
+ trigger an exception.
The first argument passed to the callback defaults to an array of
values from the current result row but may be changed with ...