classDomainRule
final class DomainRule
Lowers the domain commands.
Rule: PG-DOMAIN-LOWER-001. Scope: CreateDomainStmt, AlterDomainStmt, DomainConstraint, DomainConstraintElem. Constructors: CreateDomain, DomainDefaultChange, AlterDomainNotNull, AlterDomainConstraint, DomainCheck, DomainNotNull, DropDomainConstraint, ValidateDomainConstraint. Column qualifiers, table constraints, constraint attributes and defaults are lowered by the table family. The optional AS is noise (LeafNoise). Source: https://www.postgresql.org/docs/17/sql-createdomain.html, https://www.postgresql.org/docs/17/sql-alterdomain.html. Status: Implemented.
Methods§
Lowers a domain command.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 8
public function constraint(Node $constraint): DomainCheck|DomainNotNullLowers DomainConstraint.
Parameters
$constraint | Node |
Returns
Throws
ImplementationGap When the production has no ruleTest cases 1
Called from 1
Calls 2
- method-call DomainRule::element() line 80
- static-call ImplementationGap::production() line 82
public function element(Node $element, ?Name $name): DomainCheck|DomainNotNullLowers DomainConstraintElem with the constraint name written before it.
Returns
Throws
ImplementationGap When the production has no ruleTest cases 1
Called from 2
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Catalog\DomainRule::constraint() packages/sql-semantics-postgres/src/Lowering/Catalog/DomainRule.php:80
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Catalog\DomainRule::constraint() packages/sql-semantics-postgres/src/Lowering/Catalog/DomainRule.php:81
Calls 3
- new DomainCheck line 97
- new DomainNotNull line 98
- static-call ImplementationGap::production() line 99
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.