diff options
author | stephan <stephan@noemail.net> | 2023-07-16 19:29:50 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-07-16 19:29:50 +0000 |
commit | d703d25a35d10cc87d1840952700eb24a7289c76 (patch) | |
tree | 53538187f782c5ba3ef663605ceff9a723a28728 /ext/wasm/api | |
parent | a34f27daed6c05aaeded2ab919ae2fd72e24f415 (diff) | |
download | sqlite-d703d25a35d10cc87d1840952700eb24a7289c76.tar.gz sqlite-d703d25a35d10cc87d1840952700eb24a7289c76.zip |
Correct a missing assignment. Minor doc additions.
FossilOrigin-Name: 1c4957d0ef23ff14d4f7bfb33a809dd92712ee9faf77b6052f823eb55de15cf6
Diffstat (limited to 'ext/wasm/api')
-rw-r--r-- | ext/wasm/api/sqlite3-vfs-opfs-sahpool.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs-sahpool.js b/ext/wasm/api/sqlite3-vfs-opfs-sahpool.js index a6bb05dcd..d8cf1a4d3 100644 --- a/ext/wasm/api/sqlite3-vfs-opfs-sahpool.js +++ b/ext/wasm/api/sqlite3-vfs-opfs-sahpool.js @@ -136,7 +136,10 @@ let isPromiseReady; Synchronously reads the contents of the given file into a Uint8Array and returns it. This will throw if the given name is not currently - in active use or on I/O error. + in active use or on I/O error. Note that the given name is _not_ + visible directly in OPFS (or, if it is, it's not from this VFS). The + reason for that is that this VFS manages name-to-file mappings in + a roundabout way in order to maintain its list of SAHs. - number getCapacity() @@ -904,7 +907,7 @@ sqlite3.installOpfsSAHPoolVfs = async function(options=Object.create(null)){ sqlite3.oo1.DB.dbCtorHelper.call(this, opt); }; OpfsSAHPoolDb.prototype = Object.create(sqlite3.oo1.DB.prototype); - OpfsSAHPoolDb.PoolUtil; + OpfsSAHPoolDb.PoolUtil = PoolUtil; sqlite3.oo1.OpfsSAHPoolDb = OpfsSAHPoolDb; sqlite3.oo1.DB.dbCtorHelper.setVfsPostOpenSql( opfsVfs.pointer, |