classCollationOption
final class CollationOption
implements TableOption
uses Snapshot
Public API: explicitly declared with
@visibility public.The default collation of the table: [DEFAULT] COLLATE.
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) COLLATE = utf8mb4_bin');
$create->statement->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Option\CollationOption // => trueProperties§
public CollationName $collationMethods§
public function __construct(public CollationName $collation)Parameters
$collation | CollationName | The collation, 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.