classTextOption
final class TextOption
implements TableOption
uses Snapshot
Public API: explicitly declared with
@visibility public.A table option whose value is a string, such as COMMENT, CONNECTION or DATA DIRECTORY.
The equals sign between the option and its value is optional and is not kept. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html#create-table-options.
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a INT) COMMENT = \'x\'');
$create->statement->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Option\TextOption // => trueProperties§
public TextOptionKind $kindpublic Text $valueMethods§
public function __construct(public TextOptionKind $kind, public Text $value)Parameters
$kind | TextOptionKind | The option |
$value | Text | The string |
public function render(Output $out): voidWrites the option.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 41
- function-call
explodeline 41
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.