final class CollationName
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A collation at a position that names one: a collation name or the keyword DEFAULT.

Collation names are compared without regard to letter case; the name is kept as written. The keyword BINARY at such a position is the collation name binary. Source: https://dev.mysql.com/doc/refman/8.4/en/charset-collation-names.html.

Holding a collation name and the defaultdoctest
$named = new \SqlSemantics\Platform\MySql\Statement\Name\CollationName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('utf8mb4_bin'));
    [$named->name?->value, (new \SqlSemantics\Platform\MySql\Statement\Name\CollationName(null))->name] // => ['utf8mb4_bin', null]

Properties§

public Name|null $name

Methods§

public function __construct(public Name|null $name)

Parameters

$nameName|nullThe collation name, or null for the keyword DEFAULT
public function render(Output $out): void

Test cases 6§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 4

Relations§

Instantiated in 2
Type declarations 13