Skip to content

deriveSyncColumnTypes

deriveSyncColumnTypes<TTable>(entry): SyncColumnType[]

Defined in: packages/contracts/src/registry.ts:1264

Resolves the SyncColumnTypes of a synced table’s client-projected columns from its Drizzle definition (ADR-0009 decision 3) — the same getSQLType()/dimensions introspection the local schema generator uses, so the apply ladder and the generated DDL can never disagree about a column’s type. Drives both classifyTableApplyStrategy and the engine’s json apply cast, removing the runtime information_schema round-trip.

TTable extends AnyPgTable

SyncTableEntry<TTable>

SyncColumnType[]