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

Renames the columns of a FROM item by the column aliases written after its correlation name.

Rule: PG-COLUMN-ALIAS-001. The aliases rename the first columns in order; the remaining columns keep their names. More aliases than columns are reported when every column is known; when the columns are not all known, an alias past the known columns names a column whose type depends on the missing inputs. A renamed column refers to the column it renames. Source: https://www.postgresql.org/docs/17/queries-table-expressions.html#QUERIES-TABLE-ALIASES. Status: Implemented.

Methods§

public function apply(
    RowShape $shape,
    ?Name $alias,
    list<Name> $aliases,
    Derivation $derivation,
): RowShape

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 7
Method calls 8