classCharacteristicRule
final class CharacteristicRule
Lowers the characteristics of stored routines.
Rule: MYSQL-ROUTINE-CHARACTERISTIC-LOWERING-001. Scope: sp_a_chistics, sp_c_chistics, sp_chistic, sp_c_chistic, sp_suid. The characteristics are kept in written order, repeated kinds included. Constructs: RoutineComment, RoutineLanguage, DataAccess, SqlSecurity, Determinism. Terminates: the lists are flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html, https://dev.mysql.com/doc/refman/8.4/en/alter-procedure.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
public function characteristics(Node $list): list<Characteristic>Lowers a characteristic list: a node of sp_a_chistics or sp_c_chistics.
Parameters
$list | Node |
Returns
list<Characteristic>Throws
ImplementationGap When a production has no ruleCalled from 2
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\DefinitionRule::routine() packages/sql-semantics-mysql/src/Lowering/Routine/DefinitionRule.php:124
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\DefinitionRule::alter() packages/sql-semantics-mysql/src/Lowering/Routine/DefinitionRule.php:174
Calls 4
- method-call Sequence::items() line 69
- new Sequence line 69
- class-const CharacteristicRule::LISTS() line 69
- method-call CharacteristicRule::characteristic() line 70
public function characteristic(Node $characteristic): CharacteristicLowers one characteristic: a node of sp_chistic or sp_c_chistic.
Parameters
$characteristic | Node |
Returns
Throws
ImplementationGap When a production has no ruleTest cases 1
Called from 1
Calls 9
- method-call Lowering::form() line 83
- class-const CharacteristicRule::ACCESS() line 87
- new DataAccess line 88
- new SqlSecurity line 93
- class-const CharacteristicRule::SECURITY() line 93
- static-call ImplementationGap::production() line 93
- new Determinism line 98
- new RoutineComment line 102
- new RoutineLanguage line 103
Private surface 4§
Implementation details, listed for orientation only.
private const LISTS = ['sp_a_chistics:', 'sp_a_chistics: sp_a_chistics sp_chistic', 'sp_c_chistics:',…private const ACCESS = ['sp_chistic: NO_SYM SQL_SYM' => \SqlSemantics\Platform\MySql\Statement\Routine…private const SECURITY = ['sp_suid: SQL_SYM SECURITY_SYM DEFINER_SYM' => \SqlSemantics\Platform\MySql\St…private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Instantiated in 2
Method calls 2
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\DefinitionRule::routine() packages/sql-semantics-mysql/src/Lowering/Routine/DefinitionRule.php:124
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\DefinitionRule::alter() packages/sql-semantics-mysql/src/Lowering/Routine/DefinitionRule.php:174