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

Lowers the elements of a table definition: column definitions, column options, column constraints and LIKE.

Rule: PG-COLUMN-LOWER-001. Scope: columnDef, columnOptions, column_compression, opt_column_compression, column_storage, opt_column_storage, ColQualList, ColConstraint, ColConstraintElem, generated_when, ConstraintAttr, opt_no_inherit, TableLikeClause, TableLikeOptionList, TableLikeOption, and the element lists of CreateTableRule. A constraint name is kept on its constraint. WITH OPTIONS in columnOptions is noise (TableNoise). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-createtable.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function noInherit(Node $flag): bool
public function like(Node $clause): LikeClause

Lowers TableLikeClause with its TableLikeOptionList.

Parameters

$clauseNode

Returns

Throws

ImplementationGap When the production has no rule
Test cases 1
Called from 1
Calls 5

Private surface 3§

Implementation details, listed for orientation only.

private const ATTRIBUTES = ['ConstraintAttr: DEFERRABLE' => \SqlSemantics\Platform\PostgreSql\Statement\Co…
private const LIKE = ['TableLikeOption: COMMENTS' => \SqlSemantics\Platform\PostgreSql\Statement\Tab…
private Lowering $lowering

Test cases 12§

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

Dedicated tests 12

Relations§

Instantiated in 5
Method calls 12