Skip to content

c

c(column): SQL

Defined in: packages/contracts/src/config.ts:467

A bare (table-unqualified) quoted identifier for a Drizzle column — "workspace_id", never "work_items"."workspace_id". Electric’s shape where grammar requires plain column references (it rejects a qualified one with “Expected a plain column reference”), and Drizzle qualifies columns by default — so reference columns through c() when authoring a customWhere Drizzle fragment. The column object keeps the reference rename-safe and existence-checked at compile time; only the bare name reaches the wire. Subqueries must stay self-contained (not correlated), since bare names then resolve unambiguously to each FROM — a correlated subquery would need qualification Electric rejects.

AnyColumn

SQL