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

Lowers table definitions.

Rule: SQLITE-CREATE-TABLE-LOWER-001. Scope: cmd: create_table create_table_args, create_table, createkw, create_table_args, columnlist. Constructors: CreateTable for a column list, CreateTableAs for a query. Columns keep their written order. TEMP and IF NOT EXISTS are model values. Terminates: the column list is walked along its spine in a loop. Source: https://sqlite.org/lang_createtable.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

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

Lowers the column definitions in written order.

Parameters

$listNode

Returns

Throws

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

Private surface 3§

Implementation details, listed for orientation only.

private ColumnRule $columns
private TableConstraintRule $constraints
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 4
Type declarations 3