classVisibleRelation
final class VisibleRelation
uses Snapshot
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
A relation occurrence as one position of a query sees it: its shape and the names that qualify it.
An occurrence with neither alias nor name, such as the merged columns of a join, is found by unqualified names only.
Properties§
public Relation $relationpublic RowShape $shapepublic Name|null $alias = nullpublic QualifiedName|null $name = nullpublic list<ImplicitSlot> $implicit = []Methods§
public function __construct(
public Relation $relation,
public RowShape $shape,
public Name|null $alias = null,
public QualifiedName|null $name = null,
public list<int> $hidden = [],
public list<ImplicitSlot> $implicit = [],
)Parameters
$relation | Relation | The occurrence |
$shape | RowShape | The row shape visible at this position |
$alias | Name|null | The correlation name; when present it is the only qualifier |
$name | QualifiedName|null | The relation name that qualifies the occurrence when it has no alias |
$hidden | list<int> | The slot positions an unqualified name and a star do not see, such as the duplicate of a merged join column |
$implicit | list<ImplicitSlot> | The slots found by name only |
Test cases 22§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 22
WholeRowsTest::testFindSearchesTheEnclosingLevelscallsWholeRowsTest::testRowDependsOnAnOpenShapecallsWholeRowsTest::testRowReportsTwoRelationsOfOneNamecallsLockingTest::testNamedAnswersTheItemWithTheNamecallsJoiningTest::testExtendedMakesEverySlotNullablecallsLateralReachTest::testBarMarksEveryRelationOncecallsLateralReachTest::testBarredTellsABarredRelationcallsLateralReachTest::testReachedFindsTheBarredRelationOfAQualifiercallsLateralReachTest::testReachedFindsTheBarredRelationOfAResolvedColumncallsVisibilityTest::testAdmitsMatchesTheNameAndSchemacallsVisibilityTest::testQualifiedOnlyHidesEverySlotcallsVisibilityTest::testRestrictedTellsAQualifiedOnlyRelationcallsVisibilityTest::testStarSkipsQualifiedOnlyRelationscallsVisibilityTest::testUnhiddenSkipsHiddenSlotscallsVisibilityTest::testUnqualifiedDropsTheSystemColumnsOfQualifiedOnlyRelationscallsVisibilityTest::testUnqualifiedKeepsAnEnvironmentWithoutQualifiedOnlyRelationscallsColumnReferenceTest::testDeriveScalarReadsAOneWordNameAsTheWholeRowOfARelationcallsColumnReferenceTest::testDeriveScalarReportsAMissingColumncallsColumnReferenceTest::testDeriveScalarResolvesAQualifiedColumncallsColumnStarTest::testDeriveScalarIsTheWholeRowOfTheRelationcallsPositionalParameterTest::testDeriveScalarHasTheDeclaredTypeOfItsPositioncallsPositionalParameterTest::testDeriveScalarReportsAParameterARoutineDoesNotDeclarecalls
Relations§
Instantiated in 20
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainInput::environment() packages/sql-semantics-postgres/src/Rules/Catalog/DomainInput.php:49
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\PublishedTables::derive() packages/sql-semantics-postgres/src/Rules/Catalog/PublishedTables.php:62
- new SqlSemantics\Platform\PostgreSql\Rules\Manipulation\InsertFacts::conflict() packages/sql-semantics-postgres/src/Rules/Manipulation/InsertFacts.php:182
- new SqlSemantics\Platform\PostgreSql\Rules\Manipulation\MergeFacts::nullable() packages/sql-semantics-postgres/src/Rules/Manipulation/MergeFacts.php:142
- new SqlSemantics\Platform\PostgreSql\Rules\Manipulation\Targets::visible() packages/sql-semantics-postgres/src/Rules/Manipulation/Targets.php:43
- new SqlSemantics\Platform\PostgreSql\Rules\Query\Carriers::carry() packages/sql-semantics-postgres/src/Rules/Query/Carriers.php:48
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\FromScope::visible() packages/sql-semantics-postgres/src/Rules/Resolution/FromScope.php:73
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\FromScope::visible() packages/sql-semantics-postgres/src/Rules/Resolution/FromScope.php:84
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\FromScope::enter() packages/sql-semantics-postgres/src/Rules/Resolution/FromScope.php:109
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\Joining::join() packages/sql-semantics-postgres/src/Rules/Resolution/Joining.php:84
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\Joining::join() packages/sql-semantics-postgres/src/Rules/Resolution/Joining.php:86
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\Joining::extended() packages/sql-semantics-postgres/src/Rules/Resolution/Joining.php:200
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\LateralReach::bar() packages/sql-semantics-postgres/src/Rules/Resolution/LateralReach.php:57
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\Visibility::qualifiedOnly() packages/sql-semantics-postgres/src/Rules/Resolution/Visibility.php:48
- new SqlSemantics\Platform\PostgreSql\Rules\Resolution\Visibility::unqualified() packages/sql-semantics-postgres/src/Rules/Resolution/Visibility.php:66
- new SqlSemantics\Platform\PostgreSql\Rules\Routine\RoutineFacts::create() packages/sql-semantics-postgres/src/Rules/Routine/RoutineFacts.php:47
- new SqlSemantics\Platform\PostgreSql\Rules\Table\Command\Alterations::widened() packages/sql-semantics-postgres/src/Rules/Table/Command/Alterations.php:132
- new SqlSemantics\Platform\PostgreSql\Rules\Table\PseudoRelations::scope() packages/sql-semantics-postgres/src/Rules/Table/PseudoRelations.php:41
- new SqlSemantics\Platform\PostgreSql\Rules\Table\Targets::scope() packages/sql-semantics-postgres/src/Rules/Table/Targets.php:120
- new SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Prepared\Prepare::deriveStatement() packages/sql-semantics-postgres/src/Statement/Manipulation/Prepared/Prepare.php:63
Constant reads 1
Type declarations 29
- type SqlSemantics\Platform\PostgreSql\Model\Resolution\LookupLevel packages/sql-semantics-postgres/src/Model/Resolution/LookupLevel.php:75
- type SqlSemantics\Platform\PostgreSql\Model\Resolution\LookupLevel packages/sql-semantics-postgres/src/Model/Resolution/LookupLevel.php:88
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\Assignments packages/sql-semantics-postgres/src/Rules/Manipulation/Assignments.php:58
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\Assignments packages/sql-semantics-postgres/src/Rules/Manipulation/Assignments.php:90
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\Assignments packages/sql-semantics-postgres/src/Rules/Manipulation/Assignments.php:116
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\Assignments packages/sql-semantics-postgres/src/Rules/Manipulation/Assignments.php:155
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CopyFacts packages/sql-semantics-postgres/src/Rules/Manipulation/CopyFacts.php:131
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CopyFacts packages/sql-semantics-postgres/src/Rules/Manipulation/CopyFacts.php:177
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\GeneratedWrites packages/sql-semantics-postgres/src/Rules/Manipulation/GeneratedWrites.php:58
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\GeneratedWrites packages/sql-semantics-postgres/src/Rules/Manipulation/GeneratedWrites.php:85
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\GeneratedWrites packages/sql-semantics-postgres/src/Rules/Manipulation/GeneratedWrites.php:128
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\GeneratedWrites packages/sql-semantics-postgres/src/Rules/Manipulation/GeneratedWrites.php:140
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\InsertFacts packages/sql-semantics-postgres/src/Rules/Manipulation/InsertFacts.php:132
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\InsertFacts packages/sql-semantics-postgres/src/Rules/Manipulation/InsertFacts.php:146
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\InsertFacts packages/sql-semantics-postgres/src/Rules/Manipulation/InsertFacts.php:162
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\MergeFacts packages/sql-semantics-postgres/src/Rules/Manipulation/MergeFacts.php:82
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\ModificationScope packages/sql-semantics-postgres/src/Rules/Manipulation/ModificationScope.php:61
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\ModificationScope packages/sql-semantics-postgres/src/Rules/Manipulation/ModificationScope.php:79
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\Targets packages/sql-semantics-postgres/src/Rules/Manipulation/Targets.php:41
- type SqlSemantics\Platform\PostgreSql\Rules\Query\StarExpansion packages/sql-semantics-postgres/src/Rules/Query/StarExpansion.php:120
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\FromScope packages/sql-semantics-postgres/src/Rules/Resolution/FromScope.php:70
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\Joining packages/sql-semantics-postgres/src/Rules/Resolution/Joining.php:189
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\LateralReach packages/sql-semantics-postgres/src/Rules/Resolution/LateralReach.php:66
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\LateralReach packages/sql-semantics-postgres/src/Rules/Resolution/LateralReach.php:74
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\LateralReach packages/sql-semantics-postgres/src/Rules/Resolution/LateralReach.php:108
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\Visibility packages/sql-semantics-postgres/src/Rules/Resolution/Visibility.php:42
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\Visibility packages/sql-semantics-postgres/src/Rules/Resolution/Visibility.php:80
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\Visibility packages/sql-semantics-postgres/src/Rules/Resolution/Visibility.php:88
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\Visibility packages/sql-semantics-postgres/src/Rules/Resolution/Visibility.php:129