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

Binds the common table expressions of a WITH clause.

Rule: SQLITE-COMMON-TABLE-001. Every table of the clause is visible in every query of the clause and in the statement the clause belongs to, whether or not RECURSIVE is written. A table is derived after the tables of the clause it refers to; while its own query is derived it is bound to its column list, with columns that can hold any storage class or NULL (see SQLITE-COMPOUND-SCOPE-001 for recursive queries). The columns of a table are the result columns of its query (SQLITE-RELATION-NAME-001), renamed by the column list when one is written; a column list of another length, a collation or direction in the list and a repeated table name are reported. A table that refers to a table that refers back cannot be ordered; SQLite rejects it as a circular reference, which is reported, and the reference then falls through to the declared relations. Terminates: each table is derived once. Source: https://sqlite.org/lang_with.html. Status: Implemented.

Methods§

public function uses(CommonTable $table): array<string, true>

Answers the unqualified table names the query of a common table reads from, folded.

Parameters

Returns

array<string, true>
Test cases 1
Called from 1
Calls 3

Test cases 8§

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

Dedicated tests 8

Relations§

Instantiated in 2
Method calls 2