News for hackers. Stuff that matters.
Re:SQLite as a Document Database by liuliu on Friday November 27, 2020 @10:33AM (#25229437)
Shameless plug: Dflat wraps SQLite in similar ways for mobile applications: https://dflat.io/
Re:SQLite as a Document Database by kevinday on Friday November 27, 2020 @02:41PM (#25231945)
Just a suggestion: "If you are familiar with Core Data or Realm, Dflat occupies the same space as these two". I'm not familiar with either of these, even a brief description of what this is would be super helpful.
Re:SQLite as a Document Database by liuliu on Friday November 27, 2020 @05:13PM (#25233024)
Done! Thanks for the head-up.
Re:SQLite as a Document Database by tksb on Friday November 27, 2020 @11:13AM (#25229834)
Thanks for posting this! Very interested in Realm-like solutions.
Re:SQLite as a Document Database by liuliu on Friday November 27, 2020 @01:41PM (#25231458)
Thanks! Realm is really easy to start, but not far from Core Data in its API. Dflat focuses on writing correct code easy, thus, its API is fairly different from these two. Its API resembles from Apple's PhotosKit (which I liked the interface a lot), but generalized it and makes sure you can have concurrent and synchronous read, managed write threads, strict-serializable multi-reader / multi-writer. Also paid extra attention to edge cases such as schema upgrade upon disk full (hence, read-only schema upgrade).
Re:SQLite as a Document Database by tksb on Friday November 27, 2020 @07:21PM (#25233880)
Sounds awesome. I've saved it and hope to find some time to dig in a little bit soon. Thanks for the additional details!