~/talk

Database handling with Room

Talkat Mobilization 2017 · on Saturday, 2017-10-21· [android]
links:none on file
slides:none on file

Room is Google’s ORM-style library that generates DAO code via kapt, creates SQLite tables from entities with composite keys and foreign keys enforcing constraints, and returns row IDs for inserts; it supports Kotlin type converters for LocalDateTime, LiveData or RxJava return types, and produces JSON schema files for migration testing. Uses a singleton database instance, allows migrations (including import of existing DB via 0→1), and adds transactions in DAO so multi-step updates emit once.

AI-written summary · about

  1. 0:00Introduction
  2. 0:31About Sergi Martinez
  3. 1:05What is Room
  4. 1:25ORM
  5. 2:05Object types
  6. 2:26Entity
  7. 4:30Entities
  8. 6:30Entity options
  9. 6:40Index fields
  10. 8:00Foreign keys
  11. 10:13Nested objects
  12. 11:51Access object
  13. 14:10Insert object
  14. 15:52Query
  15. 19:27Database object
  16. 20:03Generate database object
  17. 20:44Create more than one database object
  18. 21:22Date
  19. 22:37Type converter
  20. 23:59Entity field
  21. 24:25Migrations
  22. 26:37Live Data
  23. 27:02RxJava
  24. 28:14Transactions
  25. 34:48Questions
~/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.