classTableLookup
final class TableLookup
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Resolves a relation name against the declarations of a context.
Rule: CORE-TABLE-LOOKUP-001. Schemas are searched in path order; a qualified name searches its schema only. One declaration resolves, several distinct declarations conflict. No declaration is "missing" in a complete context and "undeclared" in an open one. In an open context a declaration found after the first searched schema is only a candidate, because an undeclared relation of an earlier schema would be found first. Terminates: one pass over the finite path. Status: Implemented.
Methods§
public function find(AnalysisContext $context, QualifiedName $name): TableResolutionResolves a relation name; common tables are the caller's concern.
Parameters
$context | AnalysisContext | |
$name | QualifiedName |
Returns
Called from 1
Calls 8
- method-call AnalysisContext::declared() line 39
- new ConditionalTable line 44
- new UndeclaredRelation line 44
- function-call
countline 47 - new DeclaredTable line 47
- new ConflictingTables line 47
- new MissingTable line 50
- new UndeclaredTable line 50