~/talk

Room: The official persistence library

Talkat Mobile Era 2017 · 2017-10-05..10-06· [android, databases]
slides:none on file

Room is Google's official SQLite-backed persistence library in Architecture Components that generates DAOs and schema code via an annotation processor validates SQL, enforces a non-main-thread policy for database I/O, and requires schema export for migrations. It maps entities to tables, supports type converters and @Embedded flattening, returns LiveData or Rx types for observable queries, and plugs into the Paging component for large result sets. Migrations are manual SQL migrations and the library is in beta.

AI-written summary · about

  1. 0:00Introduction to Room
  2. 1:06State of Android persistence
  3. 4:39Room in Architecture Components
  4. 7:07Setting up Room dependencies
  5. 10:01Room’s three main components
  6. 17:51Defining entities in Room
  7. 19:16Data Access Objects explained
  8. 25:44Creating the Room database
  9. 27:12Threading and async queries
  10. 30:28Type converters for custom types
  11. 32:53Embedding objects in entities
  12. 33:58Migrating data in Room
  13. 37:52Handling large result sets
  14. 40:03Foreign key and relation support
  15. 42:09Summary and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.