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

Lowers CREATE TABLE and CREATE FOREIGN TABLE.

Rule: PG-CREATE-TABLE-LOWER-001. Scope: CreateStmt, CreateForeignTableStmt, OptTemp, OptTableElementList, OptTypedTableElementList, TableElementList, TypedTableElementList, TableElement, TypedTableElement, OptInherit, table_access_method_clause, OptWith, OnCommitOption. Constructors: CreateTable, CreateForeignTable, ListedColumns, TypedTable, PartitionOf, ParentTable, Persistence, OnCommit. WITHOUT OIDS is a noise clause (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 parents(Node $clause): list<ParentTable>

Private surface 4§

Implementation details, listed for orientation only.

private const PERSISTENCE = ['OptTemp: TEMPORARY' => \SqlSemantics\Platform\PostgreSql\Statement\Table\Pers…
private const CREATE = ['CreateStmt: CREATE OptTemp TABLE qualified_name ( OptTableElementList ) OptIn…
private const FOREIGN = ['CreateForeignTableStmt: CREATE FOREIGN TABLE qualified_name ( OptTableElement…
private Lowering $lowering

Test cases 8§

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

Dedicated tests 8

Relations§

Instantiated in 9
Method calls 11