mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Redefine what the opfs-sahpool installation promise resolves to. Fix addCapacity(). Add utility methods to import/export files.
FossilOrigin-Name: 809c6f4de3653ad7a7751af45a7a0d6cb20c3ee3be80c69833c729242227d970
This commit is contained in:
@ -107,7 +107,10 @@
|
||||
const S = globalThis.S = sqlite3;
|
||||
log("Loaded speedtest1 module. Setting up...");
|
||||
if(S.installOpfsSAHPoolVfs){
|
||||
await S.installOpfsSAHPoolVfs().catch(e=>{
|
||||
await S.installOpfsSAHPoolVfs().then(P=>{
|
||||
S.SAHPoolUtil = P;
|
||||
//return P.addCapacity(5).then(log("pool capacity:",P.getCapacity()));;
|
||||
}).catch(e=>{
|
||||
logErr("Error setting up opfs-sahpool:",e.message);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user