diff options
author | stephan <stephan@noemail.net> | 2023-07-22 19:57:42 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-07-22 19:57:42 +0000 |
commit | 2ecadd8869a5aafeaee736fbfd0dcb15990480c7 (patch) | |
tree | 9641780ec5137dea9dcafd282dad8d7f0c9ddbec /ext/wasm/api/sqlite3-v-helper.js | |
parent | 5d03b1610f268916a7609d5fb290441a07787357 (diff) | |
parent | bfe6dd0100d54e43601b96da97b27a5cda82578a (diff) | |
download | sqlite-2ecadd8869a5aafeaee736fbfd0dcb15990480c7.tar.gz sqlite-2ecadd8869a5aafeaee736fbfd0dcb15990480c7.zip |
Add the opfs-sahpool sqlite3_vfs implementation to JS, offering an alternative to the other OPFS VFS (with tradeoffs).
FossilOrigin-Name: d2e602cda44bf35e76167143262b4f91826d25780d0e095e680a31d5dedb2018
Diffstat (limited to 'ext/wasm/api/sqlite3-v-helper.js')
-rw-r--r-- | ext/wasm/api/sqlite3-v-helper.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-v-helper.js b/ext/wasm/api/sqlite3-v-helper.js index 80ab7c5b0..e63da8afc 100644 --- a/ext/wasm/api/sqlite3-v-helper.js +++ b/ext/wasm/api/sqlite3-v-helper.js @@ -100,7 +100,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ ACHTUNG: because we cannot generically know how to transform JS exceptions into result codes, the installed functions do no - automatic catching of exceptions. It is critical, to avoid + automatic catching of exceptions. It is critical, to avoid undefined behavior in the C layer, that methods mapped via this function do not throw. The exception, as it were, to that rule is... @@ -295,7 +295,8 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ - If `struct.$zName` is falsy and the entry has a string-type `name` property, `struct.$zName` is set to the C-string form of - that `name` value before registerVfs() is called. + that `name` value before registerVfs() is called. That string + gets added to the on-dispose state of the struct. On success returns this object. Throws on error. */ @@ -608,7 +609,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ This is to facilitate creation of those methods inline in the passed-in object without requiring the client to explicitly get a reference to one of them in order to assign it to the other - one. + one. The `catchExceptions`-installed handlers will account for identical references to the above functions and will install the |