Skip to content

buildOwnershipShapeWhere

buildOwnershipShapeWhere(ownerColumn, subject): SQL

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

The ownership shape where — the read-path mirror of an owner-column RLS policy: rows whose owner column equals the caller’s subject, DENY_ALL for an unauthenticated caller. Takes the real Drizzle owner column (bare via c, rename-safe); the subject rides as a typed interpolation — a bound param through buildRowFilterShape, or a drizzle-escaped literal when a proxy renders it inline for a shape URL.

AnyColumn

string | null | undefined

SQL