-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
Description
What problem is this issue trying to solve?
At the moment, all database changes and uploads are gone once the page is refreshed. Preserving them would be useful for courses, technical demos, even sharing a link to your changes.
What solution does this issue propose?
A few ideas:
- OPFS. Related Emscripten PR: Add support for read/seek on files in the native file system
localStorage
could store the binary contents of the.sqlite
file every few seconds- An "audit trail" of all SQL writes could be stored and re-applied on refresh
- (in the future) The sqlite file could reside in the persistent Filesystem API
https://github.com/jlongster/absurd-sql can persist SQLite database in IndexedDBSee https://sqlite.org/wasm/doc/tip/about.md
rgwood and lkraav