enumSetQuantifier
enum SetQuantifier: string
Public API: explicitly declared with
@visibility public.The written choice between all rows and distinct rows, in a selection or in the arguments of a function.
Source: https://sqlite.org/lang_select.html#simple_select_processing, https://sqlite.org/lang_aggfunc.html.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT DISTINCT a FROM t');
$query->statement->quantifier // => \SqlSemantics\Platform\Sqlite\Statement\Query\SetQuantifier::DistinctCases§
case Distinct = 'DISTINCT'case All = 'ALL'Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 8
CallRuleTest::testExpressionLowersTheArgumentsTheStarFormAndTheQuantifiercallsResultRuleTest::testQuantifierLowersDistinctAllOrNonecallsSelectRuleTest::testSelectionLowersEveryClauseInGrammarOrdercallsEquivalenceTest::testDifferenceNamesAChangedEnumCaseAndADroppedAliascallsValueGraphTest::testMembersAnswersTheReadonlyPropertiesAndNothingForAnEnumCasecallsValueGraphTest::testObjectsListsEveryReachableObjectOncecallsFunctionCallTest::testDeriveScalarReadsThePartsOfAnAggregateCallcallsSelectTest::testRenderWritesANewlyBuiltSelectioncalls
Relations§
Constant reads 3
- class-const SqlSemantics\Platform\Sqlite\Lowering\Query\ResultRule::quantifier() packages/sql-semantics-sqlite/src/Lowering/Query/ResultRule.php:149
- class-const SqlSemantics\Platform\Sqlite\Lowering\Query\ResultRule::quantifier() packages/sql-semantics-sqlite/src/Lowering/Query/ResultRule.php:150
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:54
Type declarations 3
- type SqlSemantics\Platform\Sqlite\Lowering\Query\ResultRule packages/sql-semantics-sqlite/src/Lowering/Query/ResultRule.php:143
- type SqlSemantics\Platform\Sqlite\Statement\Expression\FunctionCall packages/sql-semantics-sqlite/src/Statement/Expression/FunctionCall.php:74
- type SqlSemantics\Platform\Sqlite\Statement\Query\Select packages/sql-semantics-sqlite/src/Statement/Query/Select.php:87