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:
@ -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');
|
||||
});
|
||||
})();
|
||||
|
Reference in New Issue
Block a user