interfaceTableForm
interface TableForm
extends Node
Public API: explicitly declared with
@visibility public.Where the columns of a new table come from: a column list, a composite type, or a partitioned parent.
The three forms of CREATE TABLE: tableElts with inhRelations, ofTypename, or partbound with one parent in inhRelations. Source: https://www.postgresql.org/docs/17/sql-createtable.html.
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE t OF person');
$create->statement->definition instanceof \SqlSemantics\Platform\PostgreSql\Statement\Table\Element\TypedTable // => trueMethods§
public function elements(): list<Clause>Answers the column definitions, LIKE clauses, column options and table constraints, in the order written.
Returns
list<Clause>Called from 4
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:73
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions::elements() packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:132
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions::report() packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:145
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\GeneratedColumns::inherited() packages/sql-semantics-postgres/src/Rules/Table/Definition/GeneratedColumns.php:180
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TableFormTestcalls
Relations§
Implemented by 3
Method calls 4
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:73
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions::elements() packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:132
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions::report() packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:145
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\GeneratedColumns::inherited() packages/sql-semantics-postgres/src/Rules/Table/Definition/GeneratedColumns.php:180
Type declarations 6
- type SqlSemantics\Platform\PostgreSql\Lowering\Table\CreateTableRule packages/sql-semantics-postgres/src/Lowering/Table/CreateTableRule.php:128
- type SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:63
- type SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:120
- type SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:140
- type SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\GeneratedColumns packages/sql-semantics-postgres/src/Rules/Table/Definition/GeneratedColumns.php:162
- type SqlSemantics\Platform\PostgreSql\Statement\Table\CreateTable packages/sql-semantics-postgres/src/Statement/Table/CreateTable.php:66