diff options
author | stephan <stephan@noemail.net> | 2025-07-10 09:25:57 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-07-10 09:25:57 +0000 |
commit | 6fd9469a3281ae67929bfc518d0e80674ec15378 (patch) | |
tree | 4004a577a41298ed5cbe59f2677db46b3acb2f70 /ext/wasm/api/sqlite3-api-oo1.c-pp.js | |
parent | 2ba5a93e8f6f42e617fad7b840d0720bb1dfbe26 (diff) | |
download | sqlite-6fd9469a3281ae67929bfc518d0e80674ec15378.tar.gz sqlite-6fd9469a3281ae67929bfc518d0e80674ec15378.zip |
Minor JS doc tweaks.
FossilOrigin-Name: 34d893b4837be8bb679e9809befd98201dd79c8d2054f41429b18793b77e840f
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.c-pp.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.c-pp.js b/ext/wasm/api/sqlite3-api-oo1.c-pp.js index 27176c026..1473e4e45 100644 --- a/ext/wasm/api/sqlite3-api-oo1.c-pp.js +++ b/ext/wasm/api/sqlite3-api-oo1.c-pp.js @@ -1502,7 +1502,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ pass that pointer to sqlite3_close() when its close() method is called, otherwise it will not. - Throws if db cannot be resolved to one of the legal options. + Throws if pDb is not a non-0 WASM pointer. The caller MUST GUARANTEE that the passed-in handle will outlive the returned object, i.e. that it will not be closed. If it is closed, @@ -1510,16 +1510,15 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ Aside from its lifetime, the proxy is to be treated as any other DB instance, including the requirement of calling close() on - it. close() will free up internal resources owned by the proxy, - and disassociate the proxy from that handle, but will not + it. close() will free up internal resources owned by the proxy + and disassociate the proxy from that handle but will not actually close the proxied db handle unless this function is passed a thruthy second argument. - The following quirks and requirements apply when proxying another - DB instance, as opposed to a (sqlite3*): + To stress: - DO NOT call sqlite3_close() (or similar) on the being-proxied - instance while a proxy is active. + pointer while a proxy is active. - ALWAYS eventually call close() on the returned object. If the proxy does not own the underlying handle then its MUST be |