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).
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”EntryLocalTable<TRegistry[TKey]>