Expand description
Query-scope-aware binding for rewrite-rule OLD/NEW pseudo-relations.
Structs§
- Bound
Rule Statement - Only SQL-owned operations can replace a clause; callers borrow the complete statement without detaching its allocation owners.
Traits§
- Action
Columns - Action row membership is shared by ordinary binding and admitted read-only inspection.
- Rule
Source Catalog
Functions§
- action_
target_ qualifier_ referenced - bind_
rule_ action - Bind an action’s event-row OLD/NEW references while preserving the action row-image aliases visible to its DML RETURNING clause.
- bind_
rule_ action_ with_ control - Construct the bound immutable action under its original request allowance. Scratch scopes retire before the completed syntax is returned.
- bind_
rule_ expr_ scoped - Bind one expression while masking relation qualifiers supplied by the SQL scope around it. Nested query scopes add their own visible aliases.
- bind_
rule_ expr_ scoped_ with_ control - expand_
rule_ action_ returning_ stars - expand_
rule_ action_ row_ stars - first_
rule_ row_ reference_ in_ expr - first_
rule_ row_ reference_ in_ select - first_
rule_ row_ reference_ in_ statement - invalid_
rule_ relation_ reference - relation_
rule_ row_ columns_ with_ control - rule_
action_ has_ set_ operation - rule_
action_ input_ columns_ with_ control - Preserve action/condition inspection order while admitting selected names under the request.
- rule_
action_ references_ row_ with_ control - Whether an action or its unevaluated rule condition needs the event relation.
- rule_
action_ target_ columns - rule_
action_ target_ columns_ with_ control - Borrow native target names without copying unrelated declaration payloads.
- rule_
action_ target_ row_ type - rule_
condition_ plan_ references_ whole_ row - rule_
condition_ plan_ row_ columns - rule_
expr_ references_ row - rule_
expr_ references_ whole_ row - rule_
expr_ row_ columns - rule_
new_ row_ columns - Input assignments contribute only NEW fields; OLD references require source rows but never the corresponding new assignment expression.
- rule_
new_ row_ columns_ with_ control - rule_
statement_ references_ row - rule_
statement_ references_ whole_ row - rule_
statement_ row_ columns