classCollation
final class Collation
implements ColumnConstraint
uses Snapshot
Public API: explicitly declared with
@visibility public.A COLLATE column constraint: the default collating sequence of the column.
Rule: SQLITE-COLUMN-COLLATE-001. The name is kept as written. Collating sequences are registered on a connection and are not part of a declaration context, so an unknown name is not a diagnostic of the model. Source: https://sqlite.org/datatype3.html#collation. Status: Implemented.
$create = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE t (a TEXT COLLATE NOCASE)');
$create->statement->columns[0]->constraints[0]->name->value // => 'NOCASE'Properties§
public Name $nameMethods§
public function deriveConstraint(Derivation $derivation, ConstraintScope $scope): voidDerives nothing: collating sequences are not declared in a context.
Parameters
$derivation | Derivation | |
$scope | ConstraintScope |
public function render(Output $out): voidWrites the clause.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 50
- class-const NameUse::Label() line 50
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.