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

A table named with or without its inheritance descendants, as relation_expr writes it.

Mirrors PostgreSQL's RangeVar name and inh flag. A table stands for itself and its descendant tables unless ONLY is written; a trailing * states the default explicitly and changes nothing. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-FROM.

Naming one table without its descendantsdoctest
$table = new \SqlSemantics\Platform\PostgreSql\Statement\Name\RelationReference(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('t')), true);
    [$table->name->name->value, $table->only] // => ['t', true]

Properties§

public bool $only = false

Methods§

public function __construct(public QualifiedName $name, public bool $only = false)

Parameters

$nameQualifiedNameThe relation name
$onlyboolWhether descendant tables are excluded
public function render(Output $out): void

Writes ONLY when descendants are excluded, then the name.

Parameters

$outOutput
Test cases 2
Calls 3

Test cases 39§

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

Dedicated tests 2
Other tests reaching this symbol 37

Relations§

Instantiated in 12
Constant reads 4
Type declarations 10