by Existenceblinks · 4y ago · 0 comments
Question: is it really persisted indefinitely? And will this SQLite file be portable (import and export to somewhere else) ?
https://webkit.org/blog/12257/the-file-system-access-api-wit...
https://web.dev/storage-for-the-web/#:~:text=Starting%20in%2....
> ...This eviction policy does not apply to installed PWAs that have been added to the home screen.
sqlite's storage format is independent of the underlying device. OPFS is "just another backend" and the only tricky part of implementing it was that OPFS's API is largely asynchronous and sqlite3 requires synchronous I/O. The db that's stored in OPFS is exactly what would be stored on your hard drive if you were operating outside of the browser.