sql.js tests with IndexedDB as storage and Worker.
- Either open https://yanli0303.github.io/sql-js-worker-test/ with a browser;
- Or sideload microsoft-outlook-add-in-manifest.xml in Microsoft Outlook as an add-in.
- First, on
OPEN
tab, click theOPEN SQLITE DATABASE IN WORKER
to loadsql.js
library in Worker and initialize the SQLite database. - Then, on
EXEC SQL
tab,- Choose
CREATE TABLE
by clickingSELECT SQL
; - Check the
Will the SQL write any data?
; - Click the
EXEC SQL
button.
- Choose
- Switch to
INSERT
tab, select the number of rows to insert, then click theINSERT
button.The page might freeze for a few seconds while it generates random strings and numbers to insert.
- To verify the insertion, go back to
EXEC SQL
tab, chooseSELECT COUNT(*)
inSELECT SQL
and click theEXEC SQL
button to get the number of rows in the table. - Go to
MATCH
tab, enter random numbers or texts, hit either of the two match buttons.