Closed adanski closed 7 years ago
Room seems to be a good tool to ease the development.
https://medium.com/@ajaysaini.official/building-database-with-room-persistence-library-ecf7d0b8f3e9 https://riggaroo.co.za/android-architecture-components-looking-room-livedata-part-1/
Task list:
[x] Define schema with help of @Entity
and other framework goodies
[x] Create Data Access Objects for the entities
[x] Define relations between entities
[x] Add converters for non-primitive field types.
Analyze if it is better to just write raw SQLs or use a light ORM framework in the project. Google's own Room Persistence introduced in Android 8 might be a good choice in this case.
https://developer.android.com/topic/libraries/architecture/room.html