Expand description
Sequence ID tracking helpers for subscriptions.
Centralises _seq extraction from row data so that all SDKs
(native/Dart via SharedConnection, WASM/TypeScript via client.rs)
resume subscriptions from the correct position after reconnect.
The _seq column is a KalamDB system column present in every
subscription row. It is a Snowflake-based monotonically increasing
identifier that the server uses for change tracking.
Constants§
- SEQ_
COLUMN - Name of the system sequence column in every subscription row.
Functions§
- advance_
seq - Update
currenttocandidateifcandidateis strictly greater (orcurrentisNone). - extract_
max_ seq - Extract the maximum
_seqvalue from a slice of named-column rows. - retain_
rows_ after - Remove rows whose
_seqis less than or equal toafter. - row_seq
- Extract a row-level
_seqvalue, if present and parseable. - track_
rows - Convenience: extract the max
_seqfromrowsand advancecurrent.