Skip to content

JournalTable

JournalTable = typeof journalShape & object

Defined in: packages/client/src/local-tables.ts:230

The <t>_mutations journal: fixed runtime columns + the entry’s PK columns (index-signature access). Kept conservatively indexed: the journal carries ONLY the PK columns, keyed by DB COLUMN NAME and type-erased to text, but neither the PK column-name set nor the “PK only” subset is recoverable at the type level from SyncTableEntry (its primaryKey.columns is an un-narrowed string[]), so an honest per-entry type is not representable without a footgun (claiming non-PK columns that do not exist on the journal at runtime). PK/entity columns therefore ride the index signature.