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

Lowers CREATE SCHEMA.

Rule: PG-SCHEMA-LOWER-001. Scope: CreateSchemaStmt, OptSchemaEltList, schema_stmt. Constructor: CreateSchema. Each element is lowered by the family of its statement. Termination: the element list is flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-createschema.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function statement(Node $statement): Statement

Private surface 2§

Implementation details, listed for orientation only.

private const ELEMENTS = ['schema_stmt: CreateStmt', 'schema_stmt: IndexStmt', 'schema_stmt: CreateSeqSt…
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 1
Method calls 1