Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

yanli0303/sql-js-worker-test

Folders and files

NameName
Last commit message
Last commit date
Jun 11, 2020
Jun 29, 2020
Jun 29, 2020
Jun 13, 2020
Jun 12, 2020
Jun 10, 2020
Jun 11, 2020
Jun 11, 2020
Jun 10, 2020
Jun 10, 2020
Jun 10, 2020
Jun 13, 2020
Jun 13, 2020
Jun 29, 2020
Jun 12, 2020
Dec 10, 2022

Repository files navigation

sql-js-worker-test

sql.js tests with IndexedDB as storage and Worker.

screenshot

Try it yourself

  1. First, on OPEN tab, click the OPEN SQLITE DATABASE IN WORKER to load sql.js library in Worker and initialize the SQLite database.
  2. Then, on EXEC SQL tab,
    • Choose CREATE TABLE by clicking SELECT SQL;
    • Check the Will the SQL write any data?;
    • Click the EXEC SQL button.
  3. Switch to INSERT tab, select the number of rows to insert, then click the INSERT button.

    The page might freeze for a few seconds while it generates random strings and numbers to insert.

  4. To verify the insertion, go back to EXEC SQL tab, choose SELECT COUNT(*) in SELECT SQL and click the EXEC SQL button to get the number of rows in the table.
  5. Go to MATCH tab, enter random numbers or texts, hit either of the two match buttons.