classCharsetOption
final class CharsetOption
implements TableOption
uses Snapshot
Public API: explicitly declared with
@visibility public.The default character set of the table: [DEFAULT] CHARACTER SET or CHARSET.
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) CHARSET = utf8mb4');
$create->statement->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Option\CharsetOption // => trueProperties§
public CharsetName $charsetMethods§
public function __construct(public CharsetName $charset)Parameters
$charset | CharsetName | The character set, or DEFAULT |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.