final class ColumnRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Lowers column definitions and their constraints.

Rule: SQLITE-COLUMN-LOWER-001. Scope: columnname, carglist, ccons, generated, autoinc, scantok. Constructors: ColumnDefinition and the column constraint classes. The constraints keep their written order; a CONSTRAINT name clause is a list element of its own, as in the grammar. The keywords GENERATED ALWAYS before a generated column expression are declared noise; every other token is a model value. Terminates: the constraint list is flattened iteratively and every constraint is a strict subtree. Source: https://sqlite.org/syntax/column-def.html, https://sqlite.org/syntax/column-constraint.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
Calls 2
public function constraints(Node $list): list<ColumnConstraint>

Lowers the constraints of a column in written order.

Parameters

$listNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 4

Private surface 3§

Implementation details, listed for orientation only.

private ForeignKeyRule $foreignKeys
private WordRule $words
private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 3
Method calls 3
Type declarations 3