classTableUse
final class TableUse
Public API: explicitly declared with
@visibility public.One occurrence of a declared table in a query scope.
$consume = static fn (\SqlSemantics\Core\Model\TableUse $value): string => $value::class;
$consume instanceof \Closure // => trueProperties§
public string $idpublic string $scopeIdpublic TableDefinition $declarationpublic string|null $aliaspublic Node $sourceMethods§
public function __construct(
public string $id,
public string $scopeId,
public TableDefinition $declaration,
public string|null $alias,
public Node $source,
)Parameters
$id | string | Query-local relation identity |
$scopeId | string | Owning scope |
$declaration | TableDefinition | Resolved table |
$alias | string|null | Explicit alias, hiding the declaration name in this scope |
$source | Node | Original 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
TableUseTestcalls
Other tests reaching this symbol 59
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnReaderTestcallsConstraintReaderTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcalls
Relations§
Instantiated in 1
Type declarations 5
- type SqlSemantics\Core\Binding\BoundRelation packages/sql-semantics/src/Core/Binding/BoundRelation.php:20
- type SqlSemantics\Core\Binding\Scope packages/sql-semantics/src/Core/Binding/Scope.php:66
- type SqlSemantics\Core\Model\BoundSelect packages/sql-semantics/src/Core/Model/BoundSelect.php:34
- type SqlSemantics\Core\Model\Join packages/sql-semantics/src/Core/Model/Join.php:31
- type SqlSemantics\Core\Model\Join packages/sql-semantics/src/Core/Model/Join.php:32