final class CommonTable
    implements TableResolution
    uses Snapshot
Public API: explicitly declared with @visibility public.

A relation name that denotes a common table expression of the same statement.

Resolving a name to the common table that defines itdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('WITH c AS (SELECT 1 AS a) SELECT a FROM c');
    $query->facts->relation($query->statement->body->input())->table instanceof \SqlSemantics\Platform\MySql\Model\Statement\Reference\Table\CommonTable // => true

Properties§

public Node $definition

Methods§

public function __construct(public Node $definition)

Parameters

$definitionNodeThe common table definition of the statement

Relations§

Instantiated in 1
Type checks 3