diff options
author | stephan <stephan@noemail.net> | 2024-03-11 09:39:52 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-03-11 09:39:52 +0000 |
commit | 289507d78bd98f08ce2fae592ff9fb1d234753f3 (patch) | |
tree | 82c7036f222ac446a359bef06f2798806210f1ef /ext/wasm/api | |
parent | 88abf9ad44f65654e50a47c0f4a9f6e66eeff349 (diff) | |
download | sqlite-289507d78bd98f08ce2fae592ff9fb1d234753f3.tar.gz sqlite-289507d78bd98f08ce2fae592ff9fb1d234753f3.zip |
Add more docs for the OPFS delete-before-open feature.
FossilOrigin-Name: cb8d9c269c01f78f09069a2361e15087d9aeac63e9f1fd63fbd96b951384e9aa
Diffstat (limited to 'ext/wasm/api')
-rw-r--r-- | ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js index 65e39e5b5..4c654c335 100644 --- a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js +++ b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js @@ -433,6 +433,13 @@ const installOpfsVfs = function callee(options){ it. This can be used, e.g., to replace a db which has been corrupted (without forcing us to expose a delete/unlink() function in the public API). + + Failure to unlink the file is ignored but may lead to + downstream errors. An unlink can fail if, e.g., another tab + has the handle open. + + It goes without saying that deleting a file out from under another + instance results in Undefined Behavior. */ OPFS_UNLINK_BEFORE_OPEN: 0x02, /** |