Skip to content

RenderedPolicy

Defined in: packages/contracts/src/registry-invariant.ts:42

One rendered write policy on a bound entry’s Postgres table, as the invariant predicate sees it.

command: string

Defined in: packages/contracts/src/registry-invariant.ts:46

The command the policy governs: select | insert | update | delete, or all when undeclared.


name: string

Defined in: packages/contracts/src/registry-invariant.ts:44

The policy name as declared (e.g. widgets_select_owner_or_admin).


using: string | null

Defined in: packages/contracts/src/registry-invariant.ts:48

The USING predicate rendered to inline SQL text, or null when the policy declares none.


withCheck: string | null

Defined in: packages/contracts/src/registry-invariant.ts:50

The WITH CHECK predicate rendered to inline SQL text, or null when the policy declares none.