Roomは、DAOとEntityとDatabaseを作る。
非同期処理を何と噛ませるか。
RxJavaかCoroutineが今のところ選択肢。
DAOの返り値で、FlowableかLiveDataでラップしてあげることも出来る。
Entityに変更があった時は、マイグレーションは必須。
https://github.com/cOnigashima/android_parctice/tree/master/RoomExamplePractice
Roomは、DAOとEntityとDatabaseを作る。
非同期処理を何と噛ませるか。
RxJavaかCoroutineが今のところ選択肢。
DAOの返り値で、FlowableかLiveDataでラップしてあげることも出来る。
Entityに変更があった時は、マイグレーションは必須。
https://github.com/cOnigashima/android_parctice/tree/master/RoomExamplePractice