final class DomainChecks
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Checks the constraints written for a domain.

Rule: PG-DOMAIN-CHECK-001. A domain accepts NULL, NOT NULL, DEFAULT and CHECK constraints and a collation. UNIQUE, PRIMARY KEY, EXCLUDE and REFERENCES are not possible for domains, GENERATED and IDENTITY are not supported, nor is any deferrability attribute; NULL together with NOT NULL conflict, a second DEFAULT is rejected, and a CHECK constraint of a domain cannot be NO INHERIT. A constraint added by ALTER DOMAIN follows the same rules. Termination: one pass over a finite list. Source: https://www.postgresql.org/docs/17/sql-createdomain.html, https://www.postgresql.org/docs/17/sql-alterdomain.html. Status: Implemented.

Methods§

public function attributes(
    Derivation $derivation,
    list<ConstraintAttribute> $attributes,
    bool $check,
): void

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2

Relations§

Instantiated in 4
Method calls 4