enumSetQuantifier
enum SetQuantifier: string
Public API: explicitly declared with
@visibility public.The quantifier written after a set operator or after GROUP BY.
Without a quantifier a set operation removes duplicate rows and GROUP BY keeps duplicate grouping sets; the absence is kept as null by the holder. Source: https://www.postgresql.org/docs/17/queries-union.html, https://www.postgresql.org/docs/17/queries-table-expressions.html#QUERIES-GROUPING-SETS.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 UNION ALL SELECT 2');
$query->statement->quantifier // => \SqlSemantics\Platform\PostgreSql\Statement\Query\SetQuantifier::AllCases§
case All = 'ALL'case Distinct = 'DISTINCT'Test cases 5§
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 4
Relations§
Constant reads 2
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule::quantifier() packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:268
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule::quantifier() packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:269
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:263
- type SqlSemantics\Platform\PostgreSql\Statement\Query\Select packages/sql-semantics-postgres/src/Statement/Query/Select.php:90
- type SqlSemantics\Platform\PostgreSql\Statement\Query\SetOperation packages/sql-semantics-postgres/src/Statement/Query/SetOperation.php:51