Skip to content

An updated example about using Room Persistence Library

Notifications You must be signed in to change notification settings

magdamiu/AndroidRoom

Repository files navigation

Room: an SQLite object mapping library

Handling an SQLite database in Android implies challenges like:

  • a lot of boilerplate code
  • database operations on the main thread
  • queries checked at runtime and especially
  • unmaintainable code

At Google I/O 2017, the Android team launched Room, an SQLite object mapper, that provides a set of components and features that will solve all these challenges and will help us, the developers, to have a better experience when using a database in our app.

This code includes examples about:

  • how to use the main components from Room (@Entity, @Dao, @Database)
  • how to handle the relations between the entities
  • how to use the (observable) queries
  • not run database operations on the main thread
  • migration support

Check these 4 tutorials:

About

An updated example about using Room Persistence Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages