enumRaiseAction
enum RaiseAction: string
Public API: explicitly declared with
@visibility public.What a RAISE function does to the statement that fired the trigger.
Source: https://sqlite.org/lang_createtrigger.html#the_raise_function.
$trigger = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze("CREATE TRIGGER r BEFORE DELETE ON t BEGIN SELECT RAISE(ABORT, 'no'); END");
$trigger->statement->steps[0]->columns[0]->expression->action // => \SqlSemantics\Platform\Sqlite\Statement\Expression\RaiseAction::AbortCases§
case Ignore = 'IGNORE'case Rollback = 'ROLLBACK'case Abort = 'ABORT'case Fail = 'FAIL'Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 4
Relations§
Static calls 1
Constant reads 2
- class-const SqlSemantics\Platform\Sqlite\Lowering\Expression\ExpressionRule::expression() packages/sql-semantics-sqlite/src/Lowering/Expression/ExpressionRule.php:78
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Raise::__construct() packages/sql-semantics-sqlite/src/Statement/Expression/Raise.php:45