Skip to content

getSyncStateView

getSyncStateView<TRegistry>(registry, tableKey): SyncStateView

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

The <t>_sync_state convergence view (ADR-0011) as a runtime Drizzle object (writable tables only) — PK columns under the entry’s own property keys plus the fixed state columns, mirroring buildSyncStateView’s projection. The fixed state columns are typed; the PK columns ride the index signature (not recoverable at the type level — see SyncStateView) and are reached by their drizzle PROPERTY key (view["authorId"]), unlike the journal, which keys its PK columns by DB column name.

TRegistry extends SyncTableRegistry

TRegistry

string & keyof TRegistry

SyncStateView