enumReferenceEvent
enum ReferenceEvent: string
Public API: explicitly declared with
@visibility public.The change of a referenced row a referential action answers.
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 ON DELETE CASCADE)');
$create->statement->definition->elements[0]->qualifiers[0]->actions[0]->event // => \SqlSemantics\Platform\PostgreSql\Statement\Constraint\Reference\ReferenceEvent::DeleteCases§
case Update = 'UPDATE'case Delete = 'DELETE'Test cases 4§
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 3
Relations§
Constant reads 7
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ConstraintRule::actions() packages/sql-semantics-postgres/src/Lowering/Table/ConstraintRule.php:267
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ConstraintRule::actions() packages/sql-semantics-postgres/src/Lowering/Table/ConstraintRule.php:268
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\GeneratedColumns::keyActions() packages/sql-semantics-postgres/src/Rules/Table/Definition/GeneratedColumns.php:128
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\GeneratedColumns::keyActions() packages/sql-semantics-postgres/src/Rules/Table/Definition/GeneratedColumns.php:129
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\GeneratedColumns::keyActions() packages/sql-semantics-postgres/src/Rules/Table/Definition/GeneratedColumns.php:131
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\GeneratedColumns::keyActions() packages/sql-semantics-postgres/src/Rules/Table/Definition/GeneratedColumns.php:131
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\ForeignKeys::derive() packages/sql-semantics-postgres/src/Rules/Table/ForeignKeys.php:77
Type declarations 2
- type SqlSemantics\Platform\PostgreSql\Lowering\Table\ConstraintRule packages/sql-semantics-postgres/src/Lowering/Table/ConstraintRule.php:285
- type SqlSemantics\Platform\PostgreSql\Statement\Constraint\Reference\ReferentialAction packages/sql-semantics-postgres/src/Statement/Constraint/Reference/ReferentialAction.php:43