classRoutineRules
final class RoutineRules
The entry rules of the routine family: the methods other families and the statement dispatcher call.
Rule: MYSQL-ROUTINE-ENTRY-001. Scope: stored procedures, functions, triggers, events, loadable functions and compound statements. The method names, parameters and return types are fixed by the family plan. A method delegates to the rule classes of this family. Terminates: constant dispatch. Source: https://dev.mysql.com/doc/refman/8.4/en/sql-compound-statements.html. Status: Implemented.
Properties§
public Lowering $loweringMethods§
public function __construct(public Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a stored program statement: a node of one of the statement rules this family owns.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When a production has no ruleTest cases 1
Called from 1
Calls 7
- method-call Lowering::form() line 45
- method-call SignalRule::statement() line 48
- new SignalRule line 48
- method-call DiagnosticsRule::statement() line 49
- new DiagnosticsRule line 49
- method-call RoutineRules::definition() line 50
- static-call ImplementationGap::production() line 51
Lowers a production of alter or drop that MYSQL-DEFINITION-ROUTES-001 routes to this family.
The form may also be that of one of the 8.0 statement rules alter_procedure_stmt, alter_function_stmt, alter_event_stmt and drop_*_stmt of stored programs.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleTest cases 1
Called from 2
Calls 8
- function-call
explodeline 65 - function-call
in_arrayline 68 - method-call EventRule::alter() line 68
- new EventRule line 68
- method-call DefinitionRule::alter() line 69
- new DefinitionRule line 69
- method-call DefinitionRule::drop() line 70
- static-call ImplementationGap::production() line 71
Lowers CREATE of a stored program: a node of trigger_tail, sp_tail, sf_tail, event_tail or
udf_tail, and the definer.
Returns
Throws
ImplementationGap When a production has no ruleTest cases 1
Calls 9
- method-call DefinitionRule::routine() line 84
- new DefinitionRule line 84
- method-call DefinitionRule::loadable() line 85
- method-call TriggerRule::create() line 86
- new TriggerRule line 86
- method-call EventRule::create() line 87
- new EventRule line 87
- static-call ImplementationGap::production() line 88
- method-call Lowering::form() line 88
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.