classSchemaRule
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§
Lowers CreateSchemaStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 3
- new CreateSchema line 52
- method-call SchemaRule::elements() line 52
- static-call ImplementationGap::production() line 56
Lowers OptSchemaEltList: the element statements in order.
Parameters
$list | Node |
Returns
list<Statement>Throws
ImplementationGap When the production has no ruleTest cases 1
Called from 4
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Catalog\SchemaRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/SchemaRule.php:52
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Catalog\SchemaRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/SchemaRule.php:53
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Catalog\SchemaRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/SchemaRule.php:54
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Catalog\SchemaRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/SchemaRule.php:55
Calls 5
- method-call Lowering::items() line 70
- function-call
in_arrayline 72 - class-const SchemaRule::ELEMENTS() line 72
- static-call ImplementationGap::production() line 73
- method-call Lowering::statement() line 75
Private surface 2§
Implementation details, listed for orientation only.
private const ELEMENTS = ['schema_stmt: CreateStmt', 'schema_stmt: IndexStmt', 'schema_stmt: CreateSeqSt…private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.