classSelect
final class Select
implements Statement, Query, Selection
uses Snapshot
Public API: explicitly declared with
@visibility public.A selection: result columns over an optional input, with its filter, grouping, windows, ordering and limit.
Rule: SQLITE-SELECT-001. The facts are derived by SQLITE-SELECT-SCOPE-001. An ORDER BY or GROUP BY term that is an integer constant must be given as a result column position, because that is how SQLite reads it. Source: https://sqlite.org/lang_select.html. Status: Implemented.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT a FROM t WHERE a > 1 GROUP BY a HAVING count(*) > 1 ORDER BY a LIMIT 3');
[count($query->statement->columns), $query->statement->where !== null, count($query->statement->groupBy), $query->statement->having !== null, count($query->statement->orderBy), $query->statement->limit !== null] // => [1, true, 1, true, 1, true]new \SqlSemantics\Platform\Sqlite\Statement\Query\Select([new \SqlSemantics\Platform\Sqlite\Statement\Query\Star()], null, null, [], null, [], [new \SqlSemantics\Platform\Sqlite\Statement\Query\Ordering\SortTerm(new \SqlSemantics\Platform\Sqlite\Statement\Expression\Literal\IntegerLiteral('1'))]) // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\InvalidConstructionProperties§
public non-empty-list<ResultColumn|Star|TableStar> $columnspublic list<Scalar> $groupBypublic list<WindowDefinition> $windowspublic list<SortTerm> $orderBypublic Relation|null $from = nullpublic Scalar|null $where = nullpublic Scalar|null $having = nullpublic Limit|null $limit = nullpublic SetQuantifier|null $quantifier = nullMethods§
public function __construct(
list<ResultColumn|Star|TableStar> $columns,
public Relation|null $from = null,
public Scalar|null $where = null,
list<Scalar> $groupBy = [],
public Scalar|null $having = null,
list<WindowDefinition> $windows = [],
list<SortTerm> $orderBy = [],
public Limit|null $limit = null,
public SetQuantifier|null $quantifier = null,
)Parameters
$columns | list<ResultColumn|Star|TableStar> | The result columns in written order; at least one |
$from | Relation|null | The input relation |
$where | Scalar|null | The row predicate |
$groupBy | list<Scalar> | The GROUP BY terms |
$having | Scalar|null | The group predicate |
$windows | list<WindowDefinition> | The named windows |
$orderBy | list<SortTerm> | The ORDER BY terms |
$limit | Limit|null | The LIMIT clause |
$quantifier | SetQuantifier|null | The written DISTINCT or ALL |
Throws
InvalidConstruction When a part is not what the clause admitsCalls 13
- method-call ClosedList::of() line 89
- new ClosedList line 89
- class-const ResultColumn::class() line 89
- class-const Star::class() line 89
- class-const TableStar::class() line 89
- static-call Check::listOf() line 90
- class-const Scalar::class() line 90
- class-const WindowDefinition::class() line 91
- class-const SortTerm::class() line 92
- new Ordinals line 93
- function-call
array_mapline 94 - static-call Check::input() line 95
- method-call Ordinals::value() line 95
public function deriveStatement(Derivation $derivation): voidDerives the selection as a statement root and records its rows as the output.
Parameters
$derivation | Derivation |
Calls 5
- method-call ProgramOnly::outsideProgram() line 112
- new ProgramOnly line 112
- method-call Derivation::output() line 113
- method-call Derivation::query() line 113
- method-call Derivation::environment() line 113
public function deriveQuery(Derivation $derivation, Environment $outer): QueryFactDerives the input, every clause and the output fields.
Parameters
$derivation | Derivation | |
$outer | Environment |
Returns
Calls 2
- method-call SelectFacts::derive() line 121
- new SelectFacts line 121
public function render(Output $out): voidWrites the clauses in grammar order.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 129
- method-call Output::list() line 133
- method-call Output::node() line 152
Test cases 317§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 9
SelectTest::testDeriveQueryKeepsLimitFromSeeingTheColumnscallsSelectTest::testDeriveQueryLetsOrderByPreferABareAliascallsSelectTest::testDeriveQueryLetsWhereSeeInputColumnsBeforeAliasescallsSelectTest::testInputIsNullWithoutFromcallsSelectTest::testInputIsTheFromRelationcallsSelectTest::testRenderRefusesAnEmptyColumnListcallsSelectTest::testRenderRefusesAnIntegerConstantAsAnOrdinaryGroupByTermcallsSelectTest::testRenderRefusesAnIntegerConstantAsAnOrdinaryOrderByTermcallsSelectTest::testRenderWritesANewlyBuiltSelectioncalls
Other tests reaching this symbol 308
CallRuleTest::testExpressionKeepsTheArgumentOrderingOfAnAggregatecallsCallRuleTest::testExpressionLowersTheArgumentsTheStarFormAndTheQuantifiercallsCallRuleTest::testFilterLowersThePredicateOfTheFilterClausecallsCallRuleTest::testFilterOverLowersAFilterOnlyAWindowOnlyAndBothcallsCallRuleTest::testNameKeepsTheFunctionNameAsWrittencallsCallRuleTest::testOverLowersAWindowSpecificationOrAWindowNamecallsExpressionRuleTest::testColumnLowersTableAndSchemaQualifiedColumnUsescallsExpressionRuleTest::testConditionalLowersTheBaseTheBranchesAndTheElsePartcallsExpressionRuleTest::testExpressionKeepsEveryParenthesisPairAsAGroupingcallsExpressionRuleTest::testExpressionLowersAScalarSubqueryAndAnExistsTestcallsExpressionRuleTest::testExpressionLowersCollateCastAndRowExpressionscallsExpressionRuleTest::testExpressionLowersRaiseWithAndWithoutAMessagecallsExpressionRuleTest::testListLowersAnEmptyAndAFilledExpressionListcallsExpressionRuleTest::testOptionalListIsNullWithoutParenthesesAfterATableValuedIncallsExpressionRuleTest::testParameterLowersEveryPrefixWithItsLabelcallsExpressionRuleTest::testTermLowersALiteralTermcallsExpressionRuleTest::testWhereIsNullWithoutTheClausecallsExpressionRuleTest::testWordLowersAnUnqualifiedWordByHowItIsWrittencallsOperatorRuleTest::testExpressionKeepsTheOperandsInWrittenOrderAndTheStructureTheParserChosecallsOperatorRuleTest::testExpressionLowersEveryBinaryOperatorByItsSpellingcallsOperatorRuleTest::testExpressionLowersTheIsFamilycallsOperatorRuleTest::testExpressionLowersThePrefixOperatorscallsPredicateRuleTest::testExpressionLowersMembershipTestsAgainstAListAQueryAndATablecallsPredicateRuleTest::testExpressionLowersRangeTestscallsPredicateRuleTest::testExpressionLowersTheNullTestsByTheirSpellingcallsPredicateRuleTest::testMatchKeepsTheEscapeOperandcallsPredicateRuleTest::testMatchLowersEachPatternOperatorWithItsNegationcallsPredicateRuleTest::testNegatedTellsWhetherNotIsWrittenBeforeBetweenOrIncallsWindowRuleTest::testBoundLowersEveryBoundaryKindWithItsOffsetcallsWindowRuleTest::testDefinitionsAreEmptyWithoutAWindowClausecallsWindowRuleTest::testDefinitionsLowersTheWindowClauseInWrittenOrdercallsWindowRuleTest::testExclusionLowersEachExclusionAndNullWithoutItcallsWindowRuleTest::testFrameLowersAStartOnlyFrameAndABetweenFrameOfEveryUnitcallsWindowRuleTest::testWindowLowersEachOfTheSixSpecificationFormscallsConflictRuleTest::testRaisedLowersTheAlgorithmsRaiseCanNamecallsLiteralRuleTest::testNumberDropsTheDigitSeparatorsOfARealTokencallsLiteralRuleTest::testNumberLowersAHexadecimalIntegerWithUpperCasedDigitscallsLiteralRuleTest::testNumberLowersEverySpellingOfARealNumbercallsLiteralRuleTest::testPlainLowersAFloatingPointTokenByItsPartscallsLiteralRuleTest::testTermLowersABlobWithUpperCasedDigitscallsLiteralRuleTest::testTermLowersAnIntegerAndDropsItsDigitSeparatorscallsLiteralRuleTest::testTermLowersNullAndADecodedStringcallsLiteralRuleTest::testTermLowersTheCurrentTimeKeywordscallsNameRuleTest::testCollationOfAnExpressionIsDecodedLikeAnyNamecallsNameRuleTest::testNameDecodesAnIdentifierAtANamePositioncallsNameRuleTest::testScopedReadsTheSchemaWhenASecondNameFollowscallsNameRuleTest::testTokenDecodesAnIdentifierTokenAndKeepsItsCasecallsTypeNameRuleTest::testMinusNumberLowersAMinusSignedNumbercallsTypeNameRuleTest::testNamedIsNullWhenNoTypeIsWrittencallsTypeNameRuleTest::testNamedKeepsOneOrTwoNumericArgumentsWithTheirSignscallsTypeNameRuleTest::testPlusNumberLowersAnUnsignedAndAPlusSignedNumbercallsTypeNameRuleTest::testSignedLowersARealAndAHexadecimalArgumentcallsTypeNameRuleTest::testWordsKeepTheQuotingOfEachWordcallsLoweringTest::testCommandLowersAQueryCommandAndADefinitionCommandcallsLoweringTest::testStatementsLowersEveryCommandInOrderAndSkipsEmptyOnescallsLoweringTest::testTerminatedAnswersNullForAnEmptyCommandcallsLoweringTest::testTerminatedWrapsAnExplainedCommandcallsMutationRuleTest::testInsertLowersWrittenRowsAndEveryOtherSourceAsAQuerycallsFromRuleTest::testConstraintLowersOnUsingAndNonecallsFromRuleTest::testFromIsNullWithoutTheClausecallsFromRuleTest::testIndexedLowersIndexedByAndNotIndexedcallsFromRuleTest::testOperatorLowersTheCommaTheBareJoinAndTheKeywordJoinscallsFromRuleTest::testTermLowersEachKindOfTermWithItsAliascallsFromRuleTest::testTermsAnswersOneTermWithoutAConstraintAndAChainOtherwisecallsFromRuleTest::testWordLowersAWordBeforeJoinAsAKeywordWhenWrittenAsOneAndAsANameOtherwisecallsQueryCommandsTest::testCommandAnswersNullForACommandOfAnotherFamilycallsQueryCommandsTest::testCommandLowersEveryFormOfASelectCommandcallsResultRuleTest::testAliasReadsTheAliasAfterAsABareWordAStringOrNonecallsResultRuleTest::testColumnKeepsTheLayoutOfAnUnaliasedExpressionThatIsNotCanonicalcallsResultRuleTest::testColumnsLowersExpressionsStarsAndTableStarsInWrittenOrdercallsResultRuleTest::testKeywordTellsWhetherAsIntroducesTheAliascallsResultRuleTest::testMarkerCarriesNothingIntoTheResultColumnscallsResultRuleTest::testQuantifierLowersDistinctAllOrNonecallsSelectRuleTest::testArmLowersASelectionOrAValuesClausecallsSelectRuleTest::testBodyLowersACompoundQueryWithItsArmsInOrderAndTheTrailingOrderByAndLimitcallsSelectRuleTest::testGroupsTurnsAnIntegerConstantIntoAResultColumnPositioncallsSelectRuleTest::testHavingIsNullWithoutTheClausecallsSelectRuleTest::testLimitKeepsTheSpellingOfTheOffsetcallsSelectRuleTest::testSelectionLowersEveryClauseInGrammarOrdercallsSelectRuleTest::testSelectLowersAPlainQueryAndAQueryWithCommonTablescallsSortRuleTest::testDirectionLowersAscDescOrNonecallsSortRuleTest::testNullsLowersFirstLastOrNonecallsSortRuleTest::testOrderByIsEmptyWithoutTheClausecallsSortRuleTest::testTermsLowersEachTermWithItsDirectionAndNullPlacementcallsSortRuleTest::testTermsTreatsAnIntegerAsAResultColumnPositionOnlyInTheOrderByOfAQuerycallsWithRuleTest::testTableLowersTheNameTheColumnsTheQueryAndTheMaterializationHintcallsTriggerRuleTest::testProgramLowersEveryStatementInWrittenOrdercallsDerivationTest::testInspectedDiscardsDeclarationsAndRowsButKeepsFactsAndDiagnosticscallsDerivationTest::testQueryRecordsTheOutputOfAQueryAtAPositioncallsDerivationTest::testWithinReadsANestedStatementUnderOtherSearchSettingscallsFactsTest::testCoversTellsNodesOfTheOperationFromOtherscallsFactsTest::testQueryAnswersTheFactOfAQueryOfTheOperationcallsFactsTest::testQueryRefusesAQueryOfAnotherOperationcallsNodeTest::testRenderOfAChildIsReachedThroughTheOutputcallsOperationTest::testToStringIsNotReachedForANodeUsedAtTwoPositionscallsOperationTest::testToStringOfANewRootBuiltFromExplicitStructurecallsQueryTest::testDeriveQueryRecordsTheOutputOfANestedQueryAtItsPositioncallsAliasTargetTest::testFieldIsNotUsedWhenTheNameIsAColumnOfTheInputcallsAliasTargetTest::testFieldIsTheOutputFieldTheAliasNamescallsResolutionTest::testTheFiveOutcomesAreTheOnlyResolutionscallsCommonTableTest::testDefinitionIsTheCommonTableNodeOfTheStatementcallsCommonTableTest::testDefinitionShadowsADeclaredTableOfTheSameNamecallsEquivalenceTest::testDifferenceNamesAChangedClasscallsEquivalenceTest::testDifferenceNamesAChangedEnumCaseAndADroppedAliascallsEquivalenceTest::testDifferenceNamesAChangedScalarValuecallsEquivalenceTest::testDifferenceNamesAListOfAnotherLengthcallsLeafEmbeddingTest::testDroppedAnswersTheFirstLeafTheStructureLostcallsLeafEmbeddingTest::testDroppedComparesByIdentityAndNotByValuecallsLeafEmbeddingTest::testDroppedIsNullWhenEveryLeafIsReachablecallsPublicationTest::testEstablishDerivesTheFactsAndRendersCorrespondingSqlcallsPublicationTest::testEstablishRefusesANodeUsedAtTwoPositionscallsValueGraphTest::testObjectsListsEveryReachableObjectOncecallsValueGraphTest::testObjectsRefusesAClassOutsideTheAdmittedNamespacescallsValueGraphTest::testObjectsRefusesAnAnonymousClassWhateverInterfaceItImplementscallsPlatformTest::testLowerAnswersTheStatementsOfATreeInOrdercallsPlatformTest::testLowerTurnsAParseTreeIntoStatementsAndRecordsTheLeavescallsPlatformTest::testStatementNamespaceClosesTheValueDomainOfTheDatabasecallsPlatformTest::testStatementNamespaceNamesTheSqliteStatementValuescallsCanonicalTest::testLayoutKeepsTheLayoutsNestedInTheNodecallsColumnTypingTest::testArmReadsAnExpandedStarAndARowValuecallsColumnTypingTest::testTextReadsTheDeclaredTypeAColumnReferenceCarriescallsExpressionAffinityTest::testArmReadsAPositionOfASelectionOrARowcallsExpressionAffinityTest::testArmsFlattensWithClausesCompoundsAndValuesRowscallsExpressionAffinityTest::testFirstReadsTheFirstResultOfTheRightmostArmcallsExpressionAffinityTest::testOfLooksThroughParenthesesAndCollateAndReadsCastsRowValuesAndSubqueriescallsExpressionAffinityTest::testPositionFindsTheOutputFieldASlotReExposescallsExpressionAffinityTest::testReferenceReadsADoubleQuotedWordThatIsNoColumnAsAStringWithoutAffinitycallsExpressionAffinityTest::testWrittenReadsTheExpressionOfAPositionAndNothingForAStarcallsQueryColumnsTest::testNamedGivesTheNamesSqliteGivesAfterResolutioncallsQueryColumnsTest::testTableColumnsRecordTheTypeOfTheExpressionAffinitycallsQueryColumnsTest::testTableColumnsStopAtAFieldWithoutADeterminedNameOrAffinitycallsQueryColumnsTest::testViewColumnsGiveNoTypesWhenTheColumnListDoesNotFitTheQuerycallsQueryColumnsTest::testViewColumnsKeepTheDeclaredTypeAndTheNullFactOfAReferencedColumncallsQueryColumnsTest::testViewColumnsTakeTheirNamesFromAColumnListAndStopAtANameWithoutAFieldcallsValueKindsTest::testArmReadsAnExpandedStarAndAnAbsentPositioncallsValueKindsTest::testOfClassifiesEachKindOfExpressioncallsValueKindsTest::testResultsUnitesTheKindsOfEveryResultOfACasecallsPrecedenceTest::testEdgesOfAPostfixOperatorHaveNoRightOperandcallsTriggerFactsTest::testDeriveHidesTheRowThatTheEventDoesNotProvidecallsTriggerFactsTest::testDeriveMakesTheRowsOfTheEventVisibleByQualifierOnlycallsTriggerFactsTest::testDeriveReportsAParameterAnywhereInTheProgramcallsAggregationTest::testAggregatesFindsABuiltInAggregateCallAmongTheResultColumnscallsAggregationTest::testAggregatesIgnoresWindowedAndScalarCallscallsAggregationTest::testAggregatesLooksIntoNestedQueriesAndOrderingTermscallsCompoundFactsTest::testSpelledTellsANameTakenFromTheTextOfAnExpressioncallsProjectionTest::testItemsNamesEveryKindOfResultColumncallsProjectionTest::testItemsReportsARowValueResultColumncallsRelationNamesTest::testNamedPrefersTheAliasThenTheWrittenWordThenTheTextcallsRelationNamesTest::testShapeKeepsAnUndecidedNameAndTheNamesAfterItDependentcallsRelationNamesTest::testShapeKeepsTheMissingInputsAndLeavesTheNamesAfterAnOpenStarUnnamedcallsRelationNamesTest::testShapeLetsAnAliasWinAndCountsItAmongTheDuplicatescallsRelationNamesTest::testShapeNamesTheColumnsAsSqliteDoesBeforeResolutioncallsResultNamesTest::testColumnFindsTheResultColumnOfAFieldAndNoneForAStarcallsResultNamesTest::testLeftmostFindsTheArmThatNamesTheColumnscallsResultNamesTest::testResolvedLeavesAWordConditionalOnAMissingDeclarationUnnamedcallsResultNamesTest::testUnnamedAnswersTheInputsAnUndecidedNameDependsOncallsSelectFactsTest::testAliasesAnswersTheFieldsWithAnExplicitAliasInOutputOrdercallsSelectFactsTest::testDeriveAnswersTheOutputAndRecordsEveryClausecallsSelectFactsTest::testDeriveMakesInputColumnsNullableInAnAggregateSelectionWithoutGroupBycallsSelectFactsTest::testLimitDerivesTheExpressionsWithoutTheColumnsOfTheSelectioncallsSortScopesTest::testDeriveLetsABareAliasWinOnlyWhenAskedTocallsSortScopesTest::testDeriveResolvesAnOrdinalAgainstTheProjectionAndReportsARowValuecallsColumnFactsTest::testOfAnswersTheFieldOfAnAliasTargetcallsBindParameterTest::testDeriveScalarDependsOnTheBoundValuecallsBindParameterTest::testMarkerReadsEveryWrittenPrefixcallsBindParameterTest::testRenderWritesANewlyBuiltParametercallsCaseBranchTest::testRenderKeepsTheConditionAndTheResultInOrdercallsCaseBranchTest::testRenderWritesANewlyBuiltBranchcallsCaseExpressionTest::testDeriveScalarChoosesAmongTheResultTypesAndIsNotNullWithElsecallsCastTest::testDeriveScalarReadsTheTypeNameAndItsArgumentscallsCollateTest::testAcceptsAPrefixOperandWhichBindsTightercallsCollateTest::testDeriveScalarCollatesAPrefixExpressioncallsCollateTest::testDeriveScalarKeepsTheTypeAndNullFactAndLeavesTheResolutionToTheOperandcallsCollateTest::testDeriveScalarReportsACollatedRowValuecallsCollateTest::testRenderWritesANewlyBuiltCollationcallsColumnUseTest::testDeriveScalarDependsOnAnUndeclaredRelationcallsColumnUseTest::testDeriveScalarReportsAMissingColumncallsColumnUseTest::testDeriveScalarResolvesADeclaredColumnWithItsFactscallsColumnUseTest::testDeriveScalarResolvesAResultAliasInTheOrderingcallsColumnUseTest::testRenderQuotesANameThatNeedsItcallsDoubleQuotedWordTest::testDeriveScalarDependsOnAnUndeclaredRelationcallsDoubleQuotedWordTest::testDeriveScalarReadsTheWordAsTextWhenNoColumnCanResolvecallsDoubleQuotedWordTest::testDeriveScalarResolvesADeclaredColumncallsDoubleQuotedWordTest::testDeriveScalarResolvesAResultAliascallsDoubleQuotedWordTest::testRenderDoublesAnEmbeddedDoubleQuotecallsFunctionCallTest::testDeriveScalarAcceptsAggregatesUsedAsWindowsAndNamedWindowscallsFunctionCallTest::testDeriveScalarReadsThePartsOfAnAggregateCallcallsFunctionCallTest::testDeriveScalarReportsAWrongArgumentCountcallsFunctionCallTest::testRenderWritesANewlyBuiltCallcallsGroupedTest::testDeriveScalarKeepsANullOperandNullcallsGroupedTest::testDeriveScalarKeepsTheTypeAndNullFactAndLeavesTheResolutionToTheOperandcallsBlobLiteralTest::testDeriveScalarGivesBlobcallsBlobLiteralTest::testRenderWritesANewlyBuiltBlobcallsCurrentTimeTest::testDeriveScalarGivesTextThatIsNeverNullcallsCurrentTimeTest::testRenderWritesANewlyBuiltKeywordcallsHexLiteralTest::testDeriveScalarGivesIntegercallsHexLiteralTest::testDeriveScalarReportsALiteralWiderThanSixtyFourBitscallsHexLiteralTest::testRenderWritesANewlyBuiltLiteralcallsIntegerLiteralTest::testDeriveScalarGivesIntegerWhenTheValueFitscallsIntegerLiteralTest::testDeriveScalarGivesRealForALargerValuecallsIntegerLiteralTest::testRenderWritesANewlyBuiltLiteralcallsNullLiteralTest::testDeriveScalarGivesTheNullOnlyTypecallsNullLiteralTest::testRenderWritesANewlyBuiltLiteralcallsRealLiteralTest::testDeriveScalarGivesRealcallsRealLiteralTest::testRenderWritesANewlyBuiltLiteralcallsTextLiteralTest::testDeriveScalarGivesTextAndKeepsTheDecodedValuecallsTextLiteralTest::testRenderWritesANewlyBuiltLiteralcallsTimeKeywordTest::testFromMatchesTheKeywordOfAnAnalyzedExpressioncallsBetweenTest::testRenderWritesANewlyBuiltTestcallsBinaryTest::testRenderWritesANewlyBuiltOperationcallsNullTestTest::testRenderWritesANewlyBuiltTestcallsPatternMatchTest::testRenderWritesANewlyBuiltMatchcallsUnaryTest::testRenderWritesANewlyBuiltNegationOverASumcallsParameterPrefixTest::testFromMatchesThePrefixOfAnAnalyzedParametercallsRaiseActionTest::testFromMatchesTheActionOfAnAnalyzedRaisecallsRaiseTest::testDeriveScalarYieldsNoValueInsideATriggercallsRaiseTest::testRenderWritesANewlyBuiltRaisecallsRowExpressionTest::testDeriveScalarCombinesTheNullFactsOfTheElementscallsRowExpressionTest::testDeriveScalarGivesARowOfTheWrittenWidthcallsExistsTest::testDeriveScalarDerivesTheQueryInsideTheEnvironmentOfTheExpressioncallsExistsTest::testRenderWritesANewlyBuiltTestcallsInListTest::testRenderWritesANewlyBuiltTestcallsInQueryTest::testRefusesAnOperandThatEndsInAWeakerOperatorcallsInQueryTest::testRenderWritesANewlyBuiltTestcallsInTableTest::testRenderWritesANewlyBuiltTestcallsScalarSubqueryTest::testDeriveScalarDerivesTheQueryInsideTheEnvironmentOfTheExpressioncallsScalarSubqueryTest::testRenderWritesANewlyBuiltSubquerycallsTruthWordTest::testDeriveScalarDependsOnAnUndeclaredRelationcallsTruthWordTest::testDeriveScalarReadsTheConstantWhenNoColumnCanResolvecallsTruthWordTest::testDeriveScalarResolvesAColumnNamedTrueOrFalsecallsTruthWordTest::testRenderWritesANewlyBuiltWordcallsFrameBoundKindTest::testCasesMatchTheBoundariesOfAnAnalyzedFramecallsFrameBoundTest::testReadsTheOffsetOfAnAnalyzedBoundarycallsFrameBoundTest::testRenderWritesANewlyBuiltBoundarycallsFrameExclusionTest::testFromMatchesTheExclusionOfAnAnalyzedFramecallsFrameTest::testReadsBothEndsAndTheExclusioncallsFrameTest::testRenderWritesANewlyBuiltFramecallsFrameUnitTest::testFromMatchesTheUnitOfAnAnalyzedFramecallsWindowDefinitionTest::testReadsTheNameAndTheSpecificationcallsWindowDefinitionTest::testRenderWritesANewlyBuiltDefinitioncallsWindowSpecTest::testExpressionsListsPartitionOrderingAndOffsetsInWrittenOrdercallsWindowSpecTest::testReadsEveryPartOfAnAnalyzedWindowcallsWindowSpecTest::testRenderWritesANewlyBuiltSpecificationcallsInsertSelectTest::testDeriveWithinBindsTheWithClauseForTheQueryAndReturnsTheTargetRowcallsInsertSelectTest::testRejectsANonLastUpsertWithoutAConflictTargetcallsCompoundStepTest::testRenderWritesTheOperatorBeforeTheArmcallsCompoundTest::testDeriveQueryOrdersTheCombinedRowsByTheNamesOfEveryArmcallsCompoundTest::testRenderRefusesAnIntegerConstantAsAnOrdinaryOrderByTermcallsCompoundTest::testRenderRefusesAnOrderingAfterAValuesArmcallsCompoundTest::testRenderRefusesAnOrderingLeftOnTheLastArmcallsCompoundTest::testRenderRefusesASingleArmcallsCompoundTest::testRenderWritesANewlyBuiltCompoundcallsLimitTest::testRenderKeepsTheCommaSpellingcallsLimitTest::testRenderKeepsTheOffsetSpellingcallsLimitTest::testRenderWritesACountAlonecallsListedColumnTest::testRenderWritesANewlyBuiltNamecallsOutputOrdinalTest::testDeriveScalarAlsoRecordsTheConstantcallsOutputOrdinalTest::testDeriveScalarDenotesTheResultColumnAtThePositioncallsOutputOrdinalTest::testDeriveScalarDependsOnTheMissingInputsBeyondTheKnownColumnscallsOutputOrdinalTest::testDeriveScalarReportsAPositionOutsideTheResultColumnscallsSortTermTest::testRenderWritesANewlyBuiltTermcallsSortTermTest::testRenderWritesTheDirectionAndTheNullPlacementcallsOrdinalOutOfRangeTest::testMessageIsReportedAndResolvesTheTermcallsResultColumnTest::testRenderKeepsNoLayoutForTheCanonicalSpellingcallsResultColumnTest::testRenderKeepsTheCommentAfterTheExpressioncallsResultColumnTest::testRenderRefusesALayoutThatChangesATokencallsResultColumnTest::testRenderWritesANewlyBuiltColumncallsResultColumnTest::testRenderWritesTheAliasWithAsWhenItWasWrittencallsResultColumnTest::testRenderWritesTheExpressionInItsLayoutcallsSetQuantifierTest::testCasesAreReadFromASelectionAndWrittenBackcallsStarTest::testRenderWritesANewlyBuiltStarWithoutInputcallsStarTest::testRenderWritesTheStarAmongOtherColumnscallsTableStarTest::testRenderWritesANewlyBuiltQualifiedStarAndReportsAnUnknownQualifiercallsTableStarTest::testRenderWritesTheQualifierAndSelectsTheColumnsOfThatRelationcallsCommonTableTest::testRenderWritesANewlyBuiltTablecallsCommonTableTest::testRenderWritesTheColumnListAndTheHintcallsWithQueryTest::testDeriveQueryTypesARecursiveColumnAsAnyStorageClassInTheRecursiveArmcallsWithQueryTest::testDeriveStatementRecordsTheOutputOfTheBodycallsWithQueryTest::testRenderWritesANewlyBuiltQuerycallsDerivedQueryTest::testDeriveRelationNamesTheRelationByItsResultColumnscallsDerivedQueryTest::testRenderRefusesToLeaveOutAsWithoutAnAliascallsDerivedQueryTest::testRenderWritesTheQueryInParenthesesWithItsAliascallsIndexChoiceTest::testRenderWritesIndexedByWithTheIndexNamecallsJoinChainTest::testDeriveRelationListsCommaSeparatedTablesSideBySidecallsJoinChainTest::testDeriveRelationReportsAConstraintWrittenWithoutAJoincallsJoinChainTest::testDeriveRelationShowsAMergedColumnOncecallsJoinChainTest::testRenderWritesTheFirstTermItsConstraintAndEachStepcallsJoinKeywordTest::testCasesAreReadFromTheWordsBeforeJoinWhateverTheirSpellingcallsJoinOnTest::testConditionSeesBothSidesOfTheJoincallsJoinOnTest::testRenderWritesOnBeforeTheConditioncallsJoinOperatorTest::testRenderWritesACommaOrTheWordsBeforeJoincallsJoinStepTest::testRenderWritesOperatorRelationAndConstraintcallsJoinUsingTest::testColumnsResolveToTheLeftSideUnlessQualifiedcallsJoinUsingTest::testRenderWritesTheColumnsInParenthesescallsNestedInputTest::testDeriveRelationExposesTheJoinWrittenInParenthesescallsNestedInputTest::testDeriveRelationRenamesASingleTableByTheAliascallsNestedInputTest::testRenderWritesParenthesesAndTheAliascallsTableCallTest::testDeriveRelationIsAnOpenShapeNamingTheUndeclaredRoutinecallsTableCallTest::testDeriveRelationResolvesArgumentsAgainstTheTablesToTheLeftcallsTableCallTest::testRenderWritesSchemaNameArgumentsAndAliascallsTableInputTest::testDeriveRelationResolvesACommonTableToItsDefinitioncallsTableInputTest::testRenderWritesSchemaAliasAndIndexChoicecallsCreateTableTest::testDeriveStatementBindsAQueryToTheVeryObjectsItDeclarescallsCreateTriggerTest::testRejectsAStepWithAWithClausecallsCreateTriggerTest::testRejectsColumnsOnAnEventOtherThanUpdatecallsCreateTriggerTest::testRenderWritesEveryPartInGrammarOrdercallsTriggerTableTest::testRenderWritesTheSchemaAndTheNamecallsSignedNumberTest::testRenderWritesANewlyBuiltNumbercalls
Relations§
Instantiated in 1
Constant reads 1
Type checks 8
- instanceof SqlSemantics\Platform\Sqlite\Rules\Definition\Query\ExpressionAffinity::arms() packages/sql-semantics-sqlite/src/Rules/Definition/Query/ExpressionAffinity.php:206
- instanceof SqlSemantics\Platform\Sqlite\Rules\Definition\Query\QueryColumns::named() packages/sql-semantics-sqlite/src/Rules/Definition/Query/QueryColumns.php:101
- instanceof SqlSemantics\Platform\Sqlite\Rules\Query\CompoundFacts::derive() packages/sql-semantics-sqlite/src/Rules/Query/CompoundFacts.php:77
- instanceof SqlSemantics\Platform\Sqlite\Rules\Query\CompoundFacts::derive() packages/sql-semantics-sqlite/src/Rules/Query/CompoundFacts.php:80
- instanceof SqlSemantics\Platform\Sqlite\Rules\Query\CompoundFacts::spelled() packages/sql-semantics-sqlite/src/Rules/Query/CompoundFacts.php:158
- instanceof SqlSemantics\Platform\Sqlite\Rules\Query\ResultNames::leftmost() packages/sql-semantics-sqlite/src/Rules/Query/ResultNames.php:213
- instanceof SqlSemantics\Platform\Sqlite\Statement\Query\Compound::__construct() packages/sql-semantics-sqlite/src/Statement/Query/Compound.php:66
- instanceof SqlSemantics\Platform\Sqlite\Statement\Query\Compound::__construct() packages/sql-semantics-sqlite/src/Statement/Query/Compound.php:67
Type declarations 17
- type SqlSemantics\Platform\Sqlite\Lowering\Query\SelectRule packages/sql-semantics-sqlite/src/Lowering/Query/SelectRule.php:61
- type SqlSemantics\Platform\Sqlite\Lowering\Query\SelectRule packages/sql-semantics-sqlite/src/Lowering/Query/SelectRule.php:78
- type SqlSemantics\Platform\Sqlite\Lowering\Query\SelectRule packages/sql-semantics-sqlite/src/Lowering/Query/SelectRule.php:125
- type SqlSemantics\Platform\Sqlite\Lowering\Query\SelectRule packages/sql-semantics-sqlite/src/Lowering/Query/SelectRule.php:142
- type SqlSemantics\Platform\Sqlite\Lowering\Trigger\TriggerRule packages/sql-semantics-sqlite/src/Lowering/Trigger/TriggerRule.php:155
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\ColumnTyping packages/sql-semantics-sqlite/src/Rules/Definition/Query/ColumnTyping.php:142
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\ExpressionAffinity packages/sql-semantics-sqlite/src/Rules/Definition/Query/ExpressionAffinity.php:224
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\ExpressionAffinity packages/sql-semantics-sqlite/src/Rules/Definition/Query/ExpressionAffinity.php:237
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\ValueKinds packages/sql-semantics-sqlite/src/Rules/Definition/Query/ValueKinds.php:150
- type SqlSemantics\Platform\Sqlite\Rules\Query\RelationNames packages/sql-semantics-sqlite/src/Rules/Query/RelationNames.php:94
- type SqlSemantics\Platform\Sqlite\Rules\Query\ResultNames packages/sql-semantics-sqlite/src/Rules/Query/ResultNames.php:207
- type SqlSemantics\Platform\Sqlite\Rules\Query\ResultNames packages/sql-semantics-sqlite/src/Rules/Query/ResultNames.php:219
- type SqlSemantics\Platform\Sqlite\Rules\Query\SelectFacts packages/sql-semantics-sqlite/src/Rules/Query/SelectFacts.php:44
- type SqlSemantics\Platform\Sqlite\Rules\Query\SelectFacts packages/sql-semantics-sqlite/src/Rules/Query/SelectFacts.php:80
- type SqlSemantics\Platform\Sqlite\Statement\Query\Compound packages/sql-semantics-sqlite/src/Statement/Query/Compound.php:61
- type SqlSemantics\Platform\Sqlite\Statement\Query\CompoundStep packages/sql-semantics-sqlite/src/Statement/Query/CompoundStep.php:27
- type SqlSemantics\Platform\Sqlite\Statement\Query\With\WithQuery packages/sql-semantics-sqlite/src/Statement/Query/With/WithQuery.php:41