KalamTableSpec<T> class final

Generated metadata and codecs for one Drift-owned application table.

Constructors

KalamTableSpec({required String tableId, required String keyColumn, required KalamSyncMode mode, required String keyOf(T row), required Map<String, Object?> encode(T row), required T decode(Map<String, Object?> json), String? subscriptionId})
const

Properties

decode → T Function(Map<String, Object?> json)
final
encode → Map<String, Object?> Function(T row)
final
hashCode → int
The hash code for this object.
no setterinherited
keyColumn → String
final
keyOf → String Function(T row)
final
liveSql → String
SELECT * for this subscription. Drift SQL is never used here.
no setter
mode → KalamSyncMode
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscriptionId → String
final
tableId → String
final

Methods

bind(KalamClient client) → KalamTableClient<T>
Reuses the generated codecs and key for remote queries and live views.
copyWith({KalamSyncMode? mode, String? subscriptionId}) → KalamTableSpec<T>
decodeChange(KalamRemoteChange change) → KalamDecodedRow<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited