SELECT * FROM Kotlin
summary
Evaluates Room vs SQLDelight by adding on-disk persistence to a sample shopping-cart app, implements three modules (in-memory, Room, SQLDelight), and verifies behavior with Android Debug Database. Highlights: Room uses annotation processing (kapt), generates DAOs/entities, now adds Flow support but forces Android instrumentation for normal tests; SQLDelight uses a Gradle plugin, generates Kotlin and supports Kotlin Multiplatform plus a JVM driver for fast unit tests. Measured test times: in-memory 200ms, SQLDelight 600ms, Room 4.4s.
AI-written summary · about
chapters (6)
- 0:00Introduction and background
- 13:00Overview of Room and SQLDelight
- 20:30Implementing Room database
- 24:39Implementing SQLDelight
- 31:00Testing Room and SQLDelight
- 34:51Comparison and final thoughts








