1
0
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:
stephan
2023-07-16 10:02:41 +00:00
parent 28d46cce0b
commit d0ae50411f
4 changed files with 99 additions and 57 deletions

View File

@ -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);
});
}