enumReferenceReaction
enum ReferenceReaction: string
Public API: explicitly declared with
@visibility public.What happens to the child rows when their parent key is deleted or changed.
Source: https://sqlite.org/foreignkeys.html#fk_actions.
$create = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE c (p REFERENCES parent ON UPDATE SET NULL)');
$create->statement->columns[0]->constraints[0]->arguments[0]->reaction // => \SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\ReferenceReaction::SetNullCases§
case SetNull = 'SET NULL'case SetDefault = 'SET DEFAULT'case Cascade = 'CASCADE'case Restrict = 'RESTRICT'case NoAction = 'NO ACTION'Test cases 7§
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 6
ForeignKeyRuleTest::testArgumentLowersEveryEventAndReactioncallsForeignKeyRuleTest::testArgumentsKeepTheirWrittenOrdercallsForeignKeyClauseTest::testReactionIsNoActionWhenNoneIsWrittencallsForeignKeyClauseTest::testReactionIsThatOfTheLastActionWrittenForTheEventcallsReferenceActionTest::testRenderWritesAnInsertEventTheGrammarAcceptscallsReferenceActionTest::testRenderWritesTheEventAndTheReactioncalls
Relations§
Constant reads 6
- class-const SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:48
- class-const SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:49
- class-const SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:50
- class-const SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:51
- class-const SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:52
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\ForeignKeyClause::reaction() packages/sql-semantics-sqlite/src/Statement/Schema/Reference/ForeignKeyClause.php:68
Type declarations 2
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\ForeignKeyClause packages/sql-semantics-sqlite/src/Statement/Schema/Reference/ForeignKeyClause.php:66
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\ReferenceAction packages/sql-semantics-sqlite/src/Statement/Schema/Reference/ReferenceAction.php:32