Skip to content

getSyncedLocalTable

getSyncedLocalTable<TRegistry, TKey>(registry, tableKey): EntryLocalTable<TRegistry[TKey]>

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

The projected SYNCED read-cache table as a runtime Drizzle object, under the resolved local name (clientProjection.syncedTable override honoured) and the registry’s local schema — the exact relation the generator’s CREATE TABLE provisions. Prefer entry.localTable where its name already matches; this object exists for the runtime/tests that must track the projection rename. Carries the entry’s real projected columns under a concretely-typed registry, AnyPgTable under a bare SyncTableRegistry (see SyncedLocalTable).

TRegistry extends SyncTableRegistry

TKey extends string

TRegistry

TKey

EntryLocalTable<TRegistry[TKey]>