News for hackers. Stuff that matters.
Re:Appropriate Uses for SQLite by tejasmanohar on Monday February 12, 2018 @10:00AM (#16358965)
SQLite has been ported to the browser via Emscripten. I’ve seen it used in a couple niche projects (generally those that revolve around the SQL language), but I don’t remember it being a standard or even a primary use of SQLite.

[0]: https://github.com/kripken/sql.js/

Re:Appropriate Uses for SQLite by coleifer on Monday February 12, 2018 @10:45AM (#16359347)
Sure, but that's got to be a massive download. Probably not really an option for most sites.
Re:Appropriate Uses for SQLite by virtualwhys on Monday February 12, 2018 @10:38AM (#16359269)
I'm aware of it, nice project, but 2.6MB + in memory only storage, no thanks.
Re:Appropriate Uses for SQLite by hajile on Monday February 12, 2018 @10:50AM (#16359383)
It shouldn't be super difficult to backup/restore your db from localstorage using a dataURL.

https://hacks.mozilla.org/2012/02/saving-images-and-files-in...

Re:Appropriate Uses for SQLite by kbenson on Monday February 12, 2018 @12:35PM (#16360246)
At that point, why wouldn't you just look for some SQL to LocalStorage API/shim, since it's bound to be faster than (and likely more stable with regard to page resets than) putting a full SQL engine in place that just serializes to a LocalStorage object anyway?