enumTriggerTiming
enum TriggerTiming: string
Public API: explicitly declared with
@visibility public.When a trigger runs relative to the change that fires it.
Source: https://sqlite.org/lang_createtrigger.html.
$trigger = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TRIGGER r INSTEAD OF INSERT ON v BEGIN SELECT 1; END');
$trigger->statement->timing // => \SqlSemantics\Platform\Sqlite\Statement\Trigger\TriggerTiming::InsteadOfCases§
case Before = 'BEFORE'case After = 'AFTER'case InsteadOf = 'INSTEAD OF'Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 3
Relations§
Static calls 1
Constant reads 4
- class-const SqlSemantics\Platform\Sqlite\Lowering\Trigger\TriggerRule::timing() packages/sql-semantics-sqlite/src/Lowering/Trigger/TriggerRule.php:91
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\TriggerFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/TriggerFacts.php:53
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\TriggerFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/TriggerFacts.php:54
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\TriggerFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/TriggerFacts.php:55