diff options
author | stephan <stephan@noemail.net> | 2022-09-30 23:02:11 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-09-30 23:02:11 +0000 |
commit | ae589b69db0ac266f09b9e60be2eaee5e3c8e601 (patch) | |
tree | 4840d5a010d42495681452494d76941079b790b7 /ext/wasm/api/sqlite3-api-worker1.js | |
parent | e67a0f40e419f4945d8157cb047ae302bf1f2852 (diff) | |
download | sqlite-ae589b69db0ac266f09b9e60be2eaee5e3c8e601.tar.gz sqlite-ae589b69db0ac266f09b9e60be2eaee5e3c8e601.zip |
Tweaks to the Worker1 and Promiser APIs prompted by documenting them.
FossilOrigin-Name: c68b9aa160e2c1197ae7eb06a634017ac2b281393074afa4582762d5458c6889
Diffstat (limited to 'ext/wasm/api/sqlite3-api-worker1.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-worker1.js | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/ext/wasm/api/sqlite3-api-worker1.js b/ext/wasm/api/sqlite3-api-worker1.js index 5f1e310ba..c3b1fb59d 100644 --- a/ext/wasm/api/sqlite3-api-worker1.js +++ b/ext/wasm/api/sqlite3-api-worker1.js @@ -159,7 +159,7 @@ bigIntEnabled: bool. True if BigInt support is enabled. wasmfsOpfsDir: path prefix, if any, _intended_ for use with - OPFS persistent storage. + WASMFS OPFS persistent storage. wasmfsOpfsEnabled: true if persistent storage is enabled in the current environment. Only files stored under wasmfsOpfsDir @@ -188,15 +188,6 @@ See the sqlite3.oo1.DB constructor for peculiarities and transformations, - persistent [=false]: if true and filename is not one of ("", - ":memory:"), prepend sqlite3.capi.sqlite3_wasmfs_opfs_dir() - to the given filename so that it is stored in persistent storage - _if_ the environment supports it. If persistent storage is not - supported, the filename is used as-is. - - // TODO?: ^^^^ maybe rework that, now that we have the non-WASMFS - // OFPS. - } } ``` @@ -218,8 +209,7 @@ Only the `open` operation includes it in the `result` property. persistent: true if the given filename resides in the - known-persistent storage, else false. This determination is - independent of the `persistent` input argument. + known-persistent storage, else false. } } @@ -239,7 +229,7 @@ unlink: if truthy, the associated db will be unlinked (removed) from the virtual filesystems. Failure to unlink is silently - ignored. + ignored. Does not currently work for all storage backends. } } @@ -324,7 +314,7 @@ layer won't emit a result value of `undefined`.) The callback proxy must not recurse into this interface. An exec() - call will type up the Worker thread, causing any recursion attempt + call will tie up the Worker thread, causing any recursion attempt to wait until the first exec() is completed. The response is the input options object (or a synthesized one if |