classRoutineComment
final class RoutineComment
implements Characteristic
uses Snapshot
Public API: explicitly declared with
@visibility public.The COMMENT characteristic of a stored routine.
Source: https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html.
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("ALTER FUNCTION f COMMENT 'adds'");
$alter->statement->characteristics[0]->text->value // => 'adds'Properties§
public Text $textMethods§
public function __construct(public Text $text)Parameters
$text | Text | The comment, written as a quoted string |
Calls 1
- static-call Check::input() line 31
public function render(Output $out): voidWrites COMMENT and the text.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 39
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 5
CharacteristicRuleTest::testCharacteristicLowersTheCommentTextcallsCharacteristicRuleTest::testCharacteristicsKeepTheWrittenOrderOfACreatecallsCharacteristicRuleTest::testCharacteristicsKeepTheWrittenOrderOfAnAltercallsDefinitionRuleTest::testRoutineLowersAProcedurecallsCharacteristicTest::providerImplementersAreTheFiveKindsOfCharacteristiccalls