diff options
author | stephan <stephan@noemail.net> | 2022-09-27 09:17:37 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-09-27 09:17:37 +0000 |
commit | 3d64548491f6e95854b843f978a4ada16eff614c (patch) | |
tree | 23fda2d6c089dcfd00799e6b96624688d18634f5 /ext/wasm/api/sqlite3-api-opfs.js | |
parent | 278d3faf1ffa6bbd14253865edba3e81631d0cb5 (diff) | |
download | sqlite-3d64548491f6e95854b843f978a4ada16eff614c.tar.gz sqlite-3d64548491f6e95854b843f978a4ada16eff614c.zip |
wasm/js: rename /persistent to /opfs to account for potential future persistent storage options. Minor flag-handling cleanups in the speedtest1 pages. Minor API tweaks in oo1.
FossilOrigin-Name: 4dc972a3656b2a9ec915bfb3f653136560c753ce4024c3f0d0d0c28f66db7a0a
Diffstat (limited to 'ext/wasm/api/sqlite3-api-opfs.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-opfs.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-opfs.js b/ext/wasm/api/sqlite3-api-opfs.js index e28e47ab6..a346443f5 100644 --- a/ext/wasm/api/sqlite3-api-opfs.js +++ b/ext/wasm/api/sqlite3-api-opfs.js @@ -883,12 +883,15 @@ sqlite3.installOpfsVfs = function callee(asyncProxyUri = callee.defaultProxyUri) hook in to any C-side calls to sqlite3_initialize(), so we cannot add an after-initialize callback mechanism. */ - opfsUtil.reregisterVfs = (asDefault=false)=>{ + opfsUtil.registerVfs = (asDefault=false)=>{ return capi.wasm.exports.sqlite3_vfs_register( opfsVfs.pointer, asDefault ? 1 : 0 ); }; - + + //TODO to support fiddle db upload: + //opfsUtil.createFile = function(absName, content=undefined){...} + if(sqlite3.oo1){ opfsUtil.OpfsDb = function(...args){ const opt = sqlite3.oo1.dbCtorHelper.normalizeArgs(...args); |