aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/testing1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-18 17:32:35 +0000
committerstephan <stephan@noemail.net>2022-09-18 17:32:35 +0000
commitf38601206997aa909b2cd6dba02cb0b4e13e8e2a (patch)
tree7968c95b16ea078621e051c56bfd46b7e1197ce7 /ext/wasm/testing1.js
parent0db3089576b6df43fa477100446ab330b5bda905 (diff)
downloadsqlite-f38601206997aa909b2cd6dba02cb0b4e13e8e2a.tar.gz
sqlite-f38601206997aa909b2cd6dba02cb0b4e13e8e2a.zip
Numerous cleanups in the JS bits. Removed some now-defunct wasm test files. Expose sqlite3.opfs object containing various OPFS-specific utilities.
FossilOrigin-Name: 26e625d05d9820033b23536f18ad3ddc59ed712ad507d4b0c7fe88abd15d2be8
Diffstat (limited to 'ext/wasm/testing1.js')
-rw-r--r--ext/wasm/testing1.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/testing1.js b/ext/wasm/testing1.js
index e45b52bfa..574371909 100644
--- a/ext/wasm/testing1.js
+++ b/ext/wasm/testing1.js
@@ -1057,7 +1057,7 @@
let dbName = "/testing1.sqlite3";
let vfsName = undefined;
- if(capi.sqlite3_web_db_is_kvvfs()){
+ if(capi.sqlite3_web_db_uses_vfs(0,"kvvfs")){
dbName = "local";
vfsName = 'kvvfs';
logHtml("Found kvvfs. Clearing db(s) from sessionStorage and localStorage",
@@ -1065,9 +1065,9 @@
clearKvvfs();
}
const db = new oo.DB(dbName,'c',vfsName), startTime = performance.now();
- log("capi.sqlite3_web_db_is_kvvfs() ==",capi.sqlite3_web_db_is_kvvfs(db.pointer));
+ log("db is kvvfs?",capi.sqlite3_web_db_uses_vfs(db.pointer,"kvvfs"));
try {
- log("db.filename =",db.filename,"db.fileName() =",db.fileName());
+ log("db.filename =",db.filename,"db.fileName() =",db.getFilename());
const banner1 = '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>',
banner2 = '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<';
[