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

Derives the output fields of a result column list.

Rule: SQLITE-PROJECTION-001. A result column is named by SQLITE-RESULT-NAME-001 for the rows a statement returns: by its alias, by the column a column reference denotes, or by the span of its expression. * contributes every column of every input relation except the columns merged away by USING and NATURAL joins; t.* contributes every column of the relations the qualifier names. A relation whose columns are not all known contributes its known columns and an open star that names the missing inputs. A star without any input relation and a qualifier that names no input relation are reported, as is a result column that is a row value, which has no single value. Terminates: one pass over the list. Source: https://sqlite.org/c3ref/column_name.html, https://sqlite.org/lang_select.html#generation_of_the_set_of_result_rows. Status: Implemented.

Methods§

public function expand(
    list<Field|OpenStar> $items,
    VisibleRelation $relation,
    bool $merged,
): list<Field|OpenStar>

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 2
Method calls 2