final class CommentOption
    implements StorageOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

COMMENT [=] 'text': a comment on a tablespace or log file group.

The equals sign is optional and not written. Source: https://dev.mysql.com/doc/refman/8.4/en/create-tablespace.html.

Holding the optiondoctest
(new \SqlSemantics\Platform\MySql\Statement\Server\Storage\Option\CommentOption(new \SqlSemantics\Platform\MySql\Statement\Literal\Text('cold')))->comment->value // => 'cold'

Properties§

public Text $comment

Methods§

public function __construct(public Text $comment)

Parameters

$commentTextThe comment
public function keyword(): string

Answers the keyword of the option.

Returns

string
Test cases 1
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Calls 1

Test 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 1