1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Remove OPFS from the fiddle build for the time being - will re-enable once the breakage is figured out via testing with the core API.

FossilOrigin-Name: 3bc510a614973eafa60960a99bedb063594a693bdbfd80d7eb480b293b4ab811
This commit is contained in:
stephan
2022-08-13 13:51:56 +00:00
parent f79451eea7
commit 90218aec7a
4 changed files with 20 additions and 27 deletions

View File

@ -296,23 +296,7 @@
emcc ... -sMODULARIZE=1 -sEXPORT_NAME=initFiddleModule
*/
initFiddleModule(fiddleModule).then(function(thisModule){
fiddleModule.fsUnlink = fiddleModule.cwrap('sqlite3_wasm_vfs_unlink','number',['string']);
(function initOpfs(){
if(!self.FileSystemHandle || !self.FileSystemDirectoryHandle
|| !self.FileSystemFileHandle){
stdout("OPFS unavailable. All DB state is transient.");
return;
}
try {
if(0===fiddleModule.ccall('sqlite3_wasm_init_opfs', undefined)){
stdout("Initialized OPFS WASMFS backend.");
}else{
stderr("Initialization of OPFS WASMFS backend failed.");
}
}catch(e){
stderr("Apparently missing WASMFS:",e.message);
}
})();
thisModule.fsUnlink = thisModule.cwrap('sqlite3_wasm_vfs_unlink','number',['string']);
wMsg('fiddle-ready');
});
})();