Last active
October 22, 2017 12:11
-
-
Save AkshayChordiya/55c6968940e0d22519fc6239d5abef38 to your computer and use it in GitHub Desktop.
Create the database instance - Room
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get instance | |
database = Room.databaseBuilder(context, AppDatabase::class.java, "app.db") | |
.build(); | |
// Example Usage | |
val userDao = database.userDao() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment