1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

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
This commit is contained in:
stephan
2022-09-18 17:32:35 +00:00
parent 0db3089576
commit f386012069
15 changed files with 337 additions and 679 deletions

View File

@ -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 = '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<';
[