classValidateDomainConstraint
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER DOMAIN d VALIDATE CONSTRAINT c');
$operation->statement->constraint->value // => 'c'Properties§
public DottedName $namepublic Name $constraintMethods§
public function __construct(public DottedName $name, public Name $constraint)Parameters
$name | DottedName | The domain name |
$constraint | Name | The constraint name |
public function deriveStatement(Derivation $derivation): voidDerives nothing: domains are not part of a declaration context.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 50
- class-const NameUse::Column() line 50
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.