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.
Type Parameters
Section titled “Type Parameters”TRegistry
Section titled “TRegistry”TRegistry extends SyncTableRegistry
TKey extends string
Parameters
Section titled “Parameters”registry
Section titled “registry”TRegistry
tableKey
Section titled “tableKey”TKey
Returns
Section titled “Returns”ReadModelView<TRegistry[TKey]>