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

Names the output column of a select-list item that has no alias.

Rule: PG-TARGET-NAME-001. The expression names the column when its form fixes a name (a column reference after its column, a function call after the function, a cast after its type, and so on); every other column is named ?column?. The first output column of a query has such a name only when the query's first item is an expression; a star leaves it open. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-SELECT-LIST. Status: Implemented.

Methods§

public function name(Scalar $expression): Name

Answers the name an unaliased expression gives its output column.

Parameters

$expressionScalar

Returns

Test cases 1
Called from 1
Calls 2
public function first(list<Target> $targets): ?Name

Answers the name of the first output column of a select list, or null when a star comes first or the list is empty.

Parameters

$targetslist<Target>

Returns

Test cases 1
Called from 1

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 2
Method calls 2