classUndeclaredRelation
final class UndeclaredRelation
implements MissingInput
uses Snapshot
Public API: explicitly declared with
@visibility public.A relation an open context has no declaration for.
$name = new \SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\Name('t'));
(new \SqlSemantics\Platform\Sqlite\Model\Statement\Reference\Missing\UndeclaredRelation($name))->describe() // => 'the declaration of relation t'Properties§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The name as the statement wrote it |
public function describe(): stringDescribes the missing declaration.
Returns
stringTest cases 2
Test cases 24§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 22
ColumnLookupTest::testConditionalCollectsTheRelationsAndMissingInputsOfEveryOpenOccurrencecallsColumnLookupTest::testFindIsConditionalWhileANearerOccurrenceIsIncompletelyKnowncallsColumnLookupTest::testFindIsConditionalWithoutCandidatesWhenNothingIsKnowncallsLookupLevelTest::testOpenListsTheIncompleteOccurrencesWithoutAMatchcallsLookupLevelTest::testUndecidedCollectsTheMissingInputsOfTheShapeAndOfUnnamedSlotscallsQueryFactTest::testFieldsIsNullWhileAStarCannotBeExpandedcallsQueryFactTest::testLookupIsDependentInAnOpenShapeEvenWhenACandidateIsKnowncallsConditionalColumnTest::testRelationsAndMissingNameTheUndeclaredOccurrencecallsConditionalTableTest::testCandidatesAreAtLeastOnecallsDependentFieldTest::testCandidatesAreTheKnownFieldsAndMissingNamesTheStarInputscallsOpenStarTest::testMissingNamesTheUndeclaredRelationBehindAStarcallsRowShapeTest::testCompleteFailsWhileAnInputIsMissingAndTheKnownSlotsStayExactcallsDependentTest::testMissingNamesTheDeclarationATypeWaitsForcallsProjectionTest::testExpandAppendsAnOpenStarForAnIncompleteRelationcallsColumnResolverTest::testFindIsConditionalWhenAnOpenRelationMayHoldTheNamecallsColumnResolverTest::testMatchAnswersTheInputsTheNameOfAnUnnamedColumnDependsOncallsColumnResolverTest::testMatchFindsSlotsOrImplicitNamesAndOtherwiseAnswersTheMissingInputscallsTableShapesTest::testFactCopiesTheShapeOfACommonTableAndLinksItsSlotscallsColumnUseTest::testDeriveScalarDependsOnAnUndeclaredRelationcallsDoubleQuotedWordTest::testDeriveScalarDependsOnAnUndeclaredRelationcallsScalarSubqueryTest::testDeriveScalarDependsOnTheMissingInputsOfAnOpenShapecallsTruthWordTest::testDeriveScalarDependsOnAnUndeclaredRelationcalls
Relations§
Instantiated in 2
Type declarations 2
- type SqlSemantics\Platform\Sqlite\Model\Statement\Reference\Table\ConditionalTable packages/sql-semantics-sqlite/src/Model/Statement/Reference/Table/ConditionalTable.php:38
- type SqlSemantics\Platform\Sqlite\Model\Statement\Reference\Table\UndeclaredTable packages/sql-semantics-sqlite/src/Model/Statement/Reference/Table/UndeclaredTable.php:25