final class ParentTable
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A parent table named by INHERITS or PARTITION OF.

The name is resolved (PG-TABLE-TARGET-001) and its resolution is the relation fact of this node. Source: https://www.postgresql.org/docs/17/sql-createtable.html.

Resolving a parent tabledoctest
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE t () INHERITS (p)', []) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: Relation p does not exist.

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe parent table
public function render(Output $out): void

Writes the name.

Parameters

$outOutput
Calls 2

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 8
Constant reads 1
Type declarations 5