enum ReferenceAction: string
Public API: explicitly declared with @visibility public.

What a foreign key does when a referenced row changes.

Mirrors the FKCONSTR_ACTION_* codes. NO ACTION is the default and is kept when written. Source: https://www.postgresql.org/docs/17/sql-createtable.html#SQL-CREATETABLE-PARMS-REFERENCES.

Reading a referential actiondoctest
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE t (a int REFERENCES u ON UPDATE SET NULL)');
    $create->statement->definition->elements[0]->qualifiers[0]->actions[0]->action // => \SqlSemantics\Platform\PostgreSql\Statement\Constraint\Reference\ReferenceAction::SetNull

Cases§

case NoAction = 'NO ACTION'
case Restrict = 'RESTRICT'
case Cascade = 'CASCADE'
case SetNull = 'SET NULL'
case SetDefault = 'SET DEFAULT'

Methods§

Test cases 3§

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 2

Relations§

Method calls 1
Constant reads 10
Type declarations 1