enumKeyMatch
enum KeyMatch: string
Public API: explicitly declared with
@visibility public.How a foreign key matches referencing values that contain NULL.
Mirrors fk_matchtype (FKCONSTR_MATCH_FULL, PARTIAL, SIMPLE). SIMPLE is the default and is kept when written. PARTIAL is not implemented by the server. Source: https://www.postgresql.org/docs/17/sql-createtable.html#SQL-CREATETABLE-PARMS-REFERENCES.
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE t (a int REFERENCES u MATCH FULL)');
$create->statement->definition->elements[0]->qualifiers[0]->match // => \SqlSemantics\Platform\PostgreSql\Statement\Constraint\Reference\KeyMatch::FullCases§
case Full = 'FULL'case Partial = 'PARTIAL'case Simple = 'SIMPLE'Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 1
Relations§
Constant reads 4
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ConstraintRule packages/sql-semantics-postgres/src/Lowering/Table/ConstraintRule.php:57
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ConstraintRule packages/sql-semantics-postgres/src/Lowering/Table/ConstraintRule.php:57
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ConstraintRule packages/sql-semantics-postgres/src/Lowering/Table/ConstraintRule.php:57
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\ForeignKeys::derive() packages/sql-semantics-postgres/src/Rules/Table/ForeignKeys.php:73
Type declarations 5
- type SqlSemantics\Platform\PostgreSql\Lowering\Table\ConstraintRule packages/sql-semantics-postgres/src/Lowering/Table/ConstraintRule.php:240
- type SqlSemantics\Platform\PostgreSql\Rules\Table\ForeignKeys packages/sql-semantics-postgres/src/Rules/Table/ForeignKeys.php:63
- type SqlSemantics\Platform\PostgreSql\Rules\Table\ForeignKeys packages/sql-semantics-postgres/src/Rules/Table/ForeignKeys.php:89
- type SqlSemantics\Platform\PostgreSql\Statement\Constraint\Column\References packages/sql-semantics-postgres/src/Statement/Constraint/Column/References.php:57
- type SqlSemantics\Platform\PostgreSql\Statement\Constraint\Table\ForeignKey packages/sql-semantics-postgres/src/Statement/Constraint/Table/ForeignKey.php:72