rowKey
rowKey(
row,pkColumns):string
Defined in: packages/client/src/worker/live-diff.ts:20
The stable key for a result row (§4). With pkColumns, join their values (composite-safe) — this is the
diff-keying identity, so a row whose PK is unchanged is the SAME logical row even if other columns moved.
Without pkColumns (a keyless query) fall back to the whole-row JSON value: still diff-shaped (never a
full resend), but an update surfaces as remove+add rather than a changed — the documented keyless
fallback. Duplicate identical keyless rows collapse under this scheme (accepted for the fallback).
Parameters
Section titled “Parameters”Record<string, unknown>
pkColumns
Section titled “pkColumns”readonly string[] | undefined
Returns
Section titled “Returns”string