final class ValidateDomainConstraint
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

A request to check the existing values of a domain against a constraint added NOT VALID.

Rule: PG-DOMAIN-006. Mirrors AlterDomainStmt subtype 'V'. Source: https://www.postgresql.org/docs/17/sql-alterdomain.html. Status: Implemented.

Reading the validated constraintdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER DOMAIN d VALIDATE CONSTRAINT c');
    $operation->statement->constraint->value // => 'c'

Properties§

public DottedName $name
public Name $constraint

Methods§

public function __construct(public DottedName $name, public Name $constraint)

Parameters

$nameDottedNameThe domain name
$constraintNameThe constraint name
public function deriveStatement(Derivation $derivation): void

Derives nothing: domains are not part of a declaration context.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 2

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1