billymoon / chess-graph-db

Graph Database traversal presentation experiment

Home Page:chess-graph-db.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Queryable Sqlite.js database in page

billymoon opened this issue · comments

Load all data into a local sqlite.js database and allow arbitrary querying and presentation of results.

The idea here is to use the api to load a set of documents, where the responsibility is to restrict access based on user privileges, and to restrict the amount of data by some way to define the bounds of documents to select. Once the api returns a collection, which is a subset of docs restricted by these two conditions, then the web page can do the rest of the work of querying and reporting etc...

For bonus points, any inserts, updates and deletes to Sqlite.js database can sync with documents stored by api, and any updated api docs will sync with Sqlite.js database

Perhaps try to use JSON data type for storage in sql: https://www.sqlite.org/json1.html