diff options
author | stephan <stephan@noemail.net> | 2022-10-29 07:54:10 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-29 07:54:10 +0000 |
commit | 8948fbee29f8860ff6d116eaa66626ff11ab8064 (patch) | |
tree | 8b2a9b8faa122a7134e2b28485d9126f964763df /ext/wasm/batch-runner.js | |
parent | 053bb22f35c5dd153a62158ed2cc6376b5979212 (diff) | |
download | sqlite-8948fbee29f8860ff6d116eaa66626ff11ab8064.tar.gz sqlite-8948fbee29f8860ff6d116eaa66626ff11ab8064.zip |
Move the sqlite3.capi.wasm namespace to sqlite3.wasm. This causes a tiny bit of naming confusion with the sqlite3.wasm *file*, but seems to make more sense than having it as a sub-namespace of capi.
FossilOrigin-Name: 3f16eb18d6186ca972fca952ccac18649e7a905213f589e53c0c9333e695448d
Diffstat (limited to 'ext/wasm/batch-runner.js')
-rw-r--r-- | ext/wasm/batch-runner.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/wasm/batch-runner.js b/ext/wasm/batch-runner.js index c40157bb5..11c43217f 100644 --- a/ext/wasm/batch-runner.js +++ b/ext/wasm/batch-runner.js @@ -68,7 +68,7 @@ // This would be SO much easier with the oo1 API, but we specifically want to // inject metrics we can't get via that API, and we cannot reliably (OPFS) // open the same DB twice to clear it using that API, so... - const rc = sqlite3.capi.wasm.exports.sqlite3_wasm_db_reset(db.handle); + const rc = sqlite3.wasm.exports.sqlite3_wasm_db_reset(db.handle); App.logHtml("reset db rc =",rc,db.id, db.filename); }; @@ -115,7 +115,7 @@ const banner = "========================================"; this.logHtml(banner, "Running",name,'('+sql.length,'bytes) using',db.id); - const capi = this.sqlite3.capi, wasm = capi.wasm; + const capi = this.sqlite3.capi, wasm = this.sqlite3.wasm; let pStmt = 0, pSqlBegin; const stack = wasm.scopedAllocPush(); const metrics = db.metrics = Object.create(null); @@ -289,7 +289,7 @@ return; } if(!db.handle) return; - const capi = this.sqlite3, wasm = capi.wasm; + const capi = this.sqlite3, wasm = this.sqlite3.wasm; //const scope = wasm.scopedAllocPush( this.logErr("TODO: clear db"); }, @@ -488,7 +488,7 @@ App.logHtml(dbId,"cache_size =",cacheSize); }); }else{ - const capi = this.sqlite3.capi, wasm = capi.wasm; + const capi = this.sqlite3.capi, wasm = this.sqlite3.wasm; const stack = wasm.scopedAllocPush(); let pDb = 0; try{ @@ -516,7 +516,7 @@ run: function(sqlite3){ delete this.run; this.sqlite3 = sqlite3; - const capi = sqlite3.capi, wasm = capi.wasm; + const capi = sqlite3.capi, wasm = sqlite3.wasm; this.logHtml("Loaded module:",capi.sqlite3_libversion(), capi.sqlite3_sourceid()); this.logHtml("WASM heap size =",wasm.heap8().length); this.loadSqlList(); |