enumSetQuantifier
enum SetQuantifier: string
Public API: explicitly declared with
@visibility public.The DISTINCT or ALL written after a set operator.
Without a quantifier a set operation removes duplicate rows, as with DISTINCT; the absence is kept as written. Source: https://dev.mysql.com/doc/refman/8.4/en/set-operations.html.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT 1 UNION ALL SELECT 2');
$query->statement->quantifier // => \SqlSemantics\Platform\MySql\Statement\Query\Set\SetQuantifier::AllCases§
case Distinct = 'DISTINCT'case All = 'ALL'Test cases 6§
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 5
ExpressionRuleTest::testQuantifierLowersDistinctAndAllcallsQueryTailsTest::testLeadingWritesUnionTheQuantifierAndTheLastOperandcallsQueryTailsTest::testOperationWritesTheOperatorTheQuantifierAndTheRightOperandcallsLeadingUnionTest::testRenderKeepsTheOwnClausesOfAnEarlierSelectcallsSetOperationTest::testDeriveStatementRecordsTheRowsAsTheOutputcalls
Relations§
Constant reads 2
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Modern\ExpressionRule packages/sql-semantics-mysql/src/Lowering/Query/Modern/ExpressionRule.php:57
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Modern\ExpressionRule packages/sql-semantics-mysql/src/Lowering/Query/Modern/ExpressionRule.php:57
Type declarations 4
- type SqlSemantics\Platform\MySql\Lowering\Query\Modern\ExpressionRule packages/sql-semantics-mysql/src/Lowering/Query/Modern/ExpressionRule.php:164
- type SqlSemantics\Platform\MySql\Statement\Query\Set\LeadingUnion packages/sql-semantics-mysql/src/Statement/Query/Set/LeadingUnion.php:58
- type SqlSemantics\Platform\MySql\Statement\Query\Set\OrderedSetOperation packages/sql-semantics-mysql/src/Statement/Query/Set/OrderedSetOperation.php:74
- type SqlSemantics\Platform\MySql\Statement\Query\Set\SetOperation packages/sql-semantics-mysql/src/Statement/Query/Set/SetOperation.php:56