buildGrantScopeShapeWhere
buildGrantScopeShapeWhere(
scopeColumn,ids):SQL
Defined in: packages/contracts/src/supabase-rls.ts:813
The Electric shape where for a grant-scope table: an IN (…) over the resolved ids (what the
proxy injects). Takes the real Drizzle scope column — referenced bare via c() (Electric’s grammar
requires bare columns), so the reference is rename-safe — and returns a typed fragment whose ids
are bound params once buildRowFilterShape serializes it (never hand-escaped literals). An
empty id set denies all rows (DENY_ALL), mirroring the policy returning no rows.
Parameters
Section titled “Parameters”scopeColumn
Section titled “scopeColumn”AnyColumn
string[]
Returns
Section titled “Returns”SQL