diff options
author | stephan <stephan@noemail.net> | 2023-07-13 18:35:48 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-07-13 18:35:48 +0000 |
commit | f4449dc0ba9e0188ed466e42878a52fb7576efe3 (patch) | |
tree | 73f8e4a70ce96f9eba10d11816d9272b6286e655 /ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | |
parent | bc6d949aa3640f0e7f0ff750486f500e02aded76 (diff) | |
parent | d655290c99e787ec73ce7516a0e5dfae74065ebc (diff) | |
download | sqlite-f4449dc0ba9e0188ed466e42878a52fb7576efe3.tar.gz sqlite-f4449dc0ba9e0188ed466e42878a52fb7576efe3.zip |
Reintroduce WASMFS+OPFS support, albeit as a separate (less portable) WASM build.
FossilOrigin-Name: 7e4c594e9591101f6b727212c99f561498444e86d3d059e5864a717c614f903a
Diffstat (limited to 'ext/wasm/api/sqlite3-vfs-opfs.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js index 31099c7ce..f7b9acdf4 100644 --- a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js +++ b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js @@ -833,22 +833,19 @@ const installOpfsVfs = function callee(options){ /* If it turns out that we need to adjust for timezone, see: https://stackoverflow.com/a/11760121/1458521 */ wasm.poke(pOut, 2440587.5 + (new Date().getTime()/86400000), - 'double'); + 'double'); return 0; }, xCurrentTimeInt64: function(pVfs,pOut){ - // TODO: confirm that this calculation is correct wasm.poke(pOut, (2440587.5 * 86400000) + new Date().getTime(), - 'i64'); + 'i64'); return 0; }, xDelete: function(pVfs, zName, doSyncDir){ mTimeStart('xDelete'); - opRun('xDelete', wasm.cstrToJs(zName), doSyncDir, false); - /* We're ignoring errors because we cannot yet differentiate - between harmless and non-harmless failures. */ + const rc = opRun('xDelete', wasm.cstrToJs(zName), doSyncDir, false); mTimeEnd(); - return 0; + return rc; }, xFullPathname: function(pVfs,zName,nOut,pOut){ /* Until/unless we have some notion of "current dir" |