diff options
author | stephan <stephan@noemail.net> | 2024-02-06 08:25:23 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-02-06 08:25:23 +0000 |
commit | db9cc74c9ce786947c34497d778216b3acd9b373 (patch) | |
tree | 9f8e942cfc52f8210f2c1548779a5553a88f5355 /ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | |
parent | 5e922865aa1506aa14129e53281d9cbb1989b283 (diff) | |
download | sqlite-db9cc74c9ce786947c34497d778216b3acd9b373.tar.gz sqlite-db9cc74c9ce786947c34497d778216b3acd9b373.zip |
Make explicit that using the importDb() methods of the OPFS VFSes has undefined results if the being-imported db is currently open. Doc changes only.
FossilOrigin-Name: f28b9924b401b359e59a73918a34b29cde719164a6b4ac5a9d23da6294b701bd
Diffstat (limited to 'ext/wasm/api/sqlite3-vfs-opfs.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | 3 |
1 files changed, 3 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 f7c92100a..0d695e524 100644 --- a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js +++ b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js @@ -1193,6 +1193,9 @@ const installOpfsVfs = function callee(options){ Asynchronously imports the given bytes (a byte array or ArrayBuffer) into the given database file. + Results are undefined if the given db name refers to an opened + db. + If passed a function for its second argument, its behaviour changes to async and it imports its data in chunks fed to it by the given callback function. It calls the callback (which may |