Skip to content

Instantly share code, notes, and snippets.

@TKolbusz
Last active June 14, 2017 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TKolbusz/8f4cff7c7c3cbf7c50bac8881c6e4ca3 to your computer and use it in GitHub Desktop.
Save TKolbusz/8f4cff7c7c3cbf7c50bac8881c6e4ca3 to your computer and use it in GitHub Desktop.
Controlling database flow using Room and RxJava2
@Database(entities = arrayOf(Item::class), version = 1)
abstract class ItemsDatabase : RoomDatabase() {
abstract fun itemDao(): ItemDao
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment