You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9e3e141
Browse filesBrowse the repository at this point in the historyBrowse files
docs(spec): RowLevelSecurityPolicySchema.check states the per-operation using default
The using-to-check default is decided per write operation across the
applicable policies, not policy by policy: when any applicable policy
declares check, only the declared checks decide and a USING-only sibling
adds nothing. The describe and TSDoc said the default applied per policy.
Claude-Session: https://claude.ai/code/session_01Sfe5YjBLwB9J3y8fvm2xq1
Co-authored-by: Claude <noreply@anthropic.com>
.describe('Validation condition for INSERT/UPDATE (defaults to USING clause if not specified - enforced at application level)'),
434
+
.describe('Validation condition for INSERT/UPDATE, matched against the new row (enforced at application level). The default to `using` is decided per operation across the applicable policies, not per policy: when any applicable policy for that operation declares `check`, only the declared checks decide (OR-combined) and a USING-only sibling adds nothing; only when none declares `check` does each applicable policy\'s `using` stand in as its check (OR-combined). Applicable = not `enabled: false`, `object` matches or is \'*\', `operation` matches or is \'all\', and the caller holds one of its `positions` when it lists any. A `check` on a `select` or `delete` policy is never evaluated.'),
419
435
420
436
/**
421
437
* Restrict this policy to specific positions (ADR-0090 D3; formerly
0 commit comments