kalam_link Setup
kalam_link is the live SQL client. For a Flutter app with a local cache and offline writes, start at Kalam Sync instead.
Point it at a server that is already running. Server install, Docker, and first-user bootstrap live in the server quick start and kalam init.
Install
dependencies:kalam_link: ^0.6.0-rc.0Initialize once
Do not await KalamClient.connect() before runApp(). Connect after the first frame, from a service or widget.
Connect and query
Production apps should return Auth.jwt(...) from authProvider. See Authentication.
Rows are Map<String, KalamCellValue>. Use asString(), asInt(), asBool(), and asFile().
Live rows
Use live() for a custom SELECT ... FROM ... WHERE .... Do not put ORDER BY or LIMIT in live SQL.
Raw insert/update/delete events: Realtime Subscriptions.
Next
Last updated on