• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps SQLite wrapper classes

s_k

Lurker
Hi all,

I have been working on a project that uses SQLite quite extensively for client side caching, I noticed that I was duplicating a huge amount of code throughout the project.

To clean up my project I wrote a set of wrapper classes that encapsulate all Android SQLite behaviour in a set of generic methods. The database tables are defined by ORM model classes, the model objects can then be inserted or selected by helper methods.

The repo is located at: https://github.com/samkirton/android-sqlite-wrapper
It would be great to get some feedback on the code, there are still things missing but it fits my needs for now, feel free to contribute if you like it.
 
Back
Top Bottom