Skip to content

getReadModelView

getReadModelView<TRegistry, TKey>(registry, tableKey): ReadModelView<TRegistry[TKey]>

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

The <t>_read_model overlay-merged read view (ADR-0004) as a runtime Drizzle object: every projected synced column under the entry’s own property key plus the two overlay columns (overlay_kind, local_updated_at_us), mirroring the generator’s CREATE VIEW. The entry’s own entry.view is schema-UNQUALIFIED (defineSyncTable builds it with a bare pgView), so a consumer whose local store lives in a non-public schema must author against this qualified object instead of entry.view.

TRegistry extends SyncTableRegistry

TKey extends string

TRegistry

TKey

ReadModelView<TRegistry[TKey]>