Skip to content

buildSupabaseOwnerOrAdminPredicateSqlText

buildSupabaseOwnerOrAdminPredicateSqlText(options?): string

Defined in: packages/contracts/src/supabase-rls.ts:236

The owner-or-admin predicate as raw SQL text — the escape hatch for when you need the predicate as a string (a hand-written trigger, a manual migration). For attaching RLS to a Drizzle table, prefer buildSupabaseOwnerOrAdminNativePolicies, which takes the real column and is rename-tracked.

SupabaseOwnerOrAdminPredicateOptions = {}

string