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.

Reading the comment of a routinedoctest
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("ALTER FUNCTION f COMMENT 'adds'");
    $alter->statement->characteristics[0]->text->value // => 'adds'

Properties§

public Text $text

Methods§

public function __construct(public Text $text)

Parameters

$textTextThe comment, written as a quoted string
Calls 1
public function render(Output $out): void

Writes COMMENT and the text.

Parameters

$outOutput
Test cases 1
Calls 1

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

Relations§

Instantiated in 1