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

Derives the row shape of a named table occurrence.

Rule: MYSQL-TABLE-SHAPES-001. An unqualified name that a common table expression in scope defines denotes it, the innermost first; any other name resolves by CORE-TABLE-LOOKUP-001 in the current database or the database written. A declared table contributes one slot per declared column, in order, each referring to the declaration; a common table contributes the slots of its definition; an undeclared or conditionally resolved name contributes an open shape that names the missing declaration; a missing or conflicting name contributes an empty complete shape and the diagnostic. The INVISIBLE columns of a declared table are no slots of the shape, so * and the TABLE statement do not select them, but a name finds them on the occurrence. Source: https://dev.mysql.com/doc/refman/8.4/en/invisible-columns.html ("not part of SELECT *", "can be referenced explicitly"),

  • https://dev.mysql.com/doc/refman/8.4/en/with.html ("a CTE name ...

takes precedence over a table of the same name"), https://dev.mysql.com/doc/refman/8.4/en/join.html. Status: Implemented.

Methods§

public function explicit(
    ExplicitTable $table,
    RelationFact $fact,
    Derivation $derivation,
): QueryFact

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