Master Room Database

Room fundamentals, relationships, migrations, offline-first sync, and testing.

21 chapters · first 2 free to read

Start reading

Chapters

  1. Chapter 1: Why Local Data, and Why Room · Free
  2. Chapter 2: Setting Up Room · Free
  3. Chapter 3: Your First Entity, DAO, and Query
  4. Chapter 4: Entities in Depth
  5. Chapter 5: Querying with DAOs
  6. Chapter 6: Type Converters
  7. Chapter 7: Reactive Reads with Flow
  8. Chapter 8: One-to-One and One-to-Many
  9. Chapter 9: Many-to-Many
  10. Chapter 10: Joins, Aggregations, and Multi-Map Queries
  11. Chapter 11: Manual Migrations
  12. Chapter 12: Automated Migrations
  13. Chapter 13: Prepopulating and Seeding Data
  14. Chapter 14: The Offline-First Architecture
  15. Chapter 15: Syncing Room with a Remote API
  16. Chapter 16: Background Sync with WorkManager
  17. Chapter 17: Paging, Indexing, and Performance
  18. Chapter 18: Testing the Data Layer
  19. Stretch Chapter: Full-Text Search
  20. Stretch Chapter: Securing the Database
  21. Stretch Chapter: Room for Kotlin Multiplatform