Skip to content

Instantly share code, notes, and snippets.

@motorro
Created March 13, 2020 07:51
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 motorro/a09ee93d13437332fa929eb9e85dc653 to your computer and use it in GitHub Desktop.
Save motorro/a09ee93d13437332fa929eb9e85dc653 to your computer and use it in GitHub Desktop.
Database definition
@Database(entities = [City::class], version = BuildConfig.CITIES_DB_VERSION)
@TypeConverters(DataConverters::class)
abstract class CitiesDb: RoomDatabase() {
/**
* Cities DAO
*/
abstract fun citiesDao(): CitiesDao
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment