(no title)
stu_k
|
2 years ago
Has anyone built a mobile app on top of SQLite that can work offline, but then sync to a server when it gets connectivity? It feels like this could be built with a similar approach to this distributed SQLite, you'd "just" need more robust conflict handling.
benbjohnson|2 years ago
[1]: https://github.com/vlcn-io/cr-sqlite
[2]: https://github.com/mycelial/mycelite
maxpert|2 years ago
For that I am also exploring on SQLite-Y-CRDT (https://github.com/maxpert/sqlite-y-crdt) which can help me treat each row as document, and then try to merge them. I personally think CRDT gets harder to reason sometimes, and might not be explainable to an entry level developers. Usually when something is hard to reason and explain, I prefer sticking to simplicity. People IMO will be much more comfortable knowing they can't use auto incrementing IDs for particular tables (because two independent nodes can increment counter to same values) vs here is a magical way to merge that will mess up your data.
qweqwe14|2 years ago
It's actually a 3rd party app, WK provides an API so that people can make apps that interface with the system.
Forum thread: https://community.wanikani.com/t/android-flaming-durtles-and...
Source code (may be outdated): https://github.com/ejplugge/com.the_tinkering.wk
nijave|2 years ago
pritambarhate|2 years ago