Skip to content

RenderedPolicy

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

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:33

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


name: string

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

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


using: string | null

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

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:37

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