final class TableUse
Public API: explicitly declared with @visibility public.

One occurrence of a declared table in a query scope.

Accept this semantic value in a database-independent consumerdoctest
$consume = static fn (\SqlSemantics\Core\Model\TableUse $value): string => $value::class;
    $consume instanceof \Closure // => true

Properties§

public string $id
public string $scopeId
public TableDefinition $declaration
public string|null $alias
public Node $source

Methods§

public function __construct(
    public string $id,
    public string $scopeId,
    public TableDefinition $declaration,
    public string|null $alias,
    public Node $source,
)

Parameters

$idstringQuery-local relation identity
$scopeIdstringOwning scope
$declarationTableDefinitionResolved table
$aliasstring|nullExplicit alias, hiding the declaration name in this scope
$sourceNodeOriginal table reference

Test cases 60§

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

Dedicated tests 1
Other tests reaching this symbol 59

Relations§

Instantiated in 1
Type declarations 5