Remote / API
foldkit-remote/maintained
foldkit-remote/maintained: values over the rows of a loaded list, kept up
to date from the rows that changed (#580).
Namespaces
Maintained | foldkit-remote/maintained: a value over the rows of a loaded list (a total, a minimum, the rows themselves) kept up to date from the rows that changed… |
Functions
classify | Classify a maintained definition (List or ListAggregate). |
classifyOperation | Classify a custom reduce fold over a @doeixd/metakit/operation Operation, as its keeper runs it: a change is folded in where it arrives only where… |
covers | Whether every row matching asked is guaranteed to be included in held (asked.where ⇒ held.where), checked over entity.schema via Abstract.checkGoal. |
formatRescanLog | Format a development log line for a rescanning maintained value (returns undefined for Update). |
makeOrderIndex | Build a sorted order index over entries, ordered by compare(a, b) with EntityKey tie-break for uniqueness. |
makeReverseIndex | Build a reverse index mapping targetId -> Set<sourceKey> for O(1) join lookups. |
markCurrent | Promote an AsOfResult to Current once a fresh read settles. |
maybeOrderIndex | Build an OrderIndex only when entries.length > threshold (default INDEX_THRESHOLD = 400). |
maybeReverseIndex | Build a ReverseIndex only when links.length > threshold (default INDEX_THRESHOLD = 400). |
rescanReport | Return every rescanning maintained value in entries with its reason and message. |
restoreAsOf | Restore a retained maintained value after reload/reconnect. Strips any extraneous cursor field, tags freshness as AsOf, and marks needsRefresh: true so the… |
retainAsOf | Snapshot a maintained value for offline persistence at revision. Intentionally carries only value and completeAsOf (never a server cursor). |
Values
Interfaces
Types
AggregateValue | What an aggregate gives: a number for sum and count, an Option for min and max, a boolean for every and any. |
Definition | What a maintained value keeps: a @doeixd/metakit/aggregates value, reduce, join, or list. |
ListAggregate | The parts of a @doeixd/metakit/aggregates value a list's rows are folded with. Only functions of a row, so an aggregate over fewer fields than the list… |
ValueOf | What a definition gives over rows of type Row. |