0Pricing
Kotlin Multiplatform Academy · Lesson

Observe Tables as Flow

Get reactive updates when the database changes.

Why Observe Instead of Poll

Re-running a query by hand misses changes. SQLDelight can push fresh results to you whenever the table changes.

Add the Coroutines Extension

Reactive queries need the coroutines-extensions artifact, which adds Flow support on top of your generated queries.

implementation("app.cash.sqldelight:coroutines-extensions:2.0.2")

All lessons in this course

  1. Add SQLDelight & Write .sq Schemas
  2. Platform SqlDriver Setup
  3. Insert, Query & Update Rows
  4. Observe Tables as Flow
← Back to Kotlin Multiplatform Academy