enumQuantifier
enum Quantifier: string
Public API: explicitly declared with
@visibility public.The quantifier of a comparison with a set of values: ANY, its synonym SOME, or ALL.
ANY and SOME request the same test; the grammar keeps the word. Source: https://www.postgresql.org/docs/17/functions-subquery.html.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 = SOME (SELECT 1)');
$query->field(0)->expression->quantifier // => \SqlSemantics\Platform\PostgreSql\Statement\Expression\Subquery\Quantifier::SomeCases§
case Any = 'ANY'ANY: true when the comparison holds for some value.
case Some = 'SOME'SOME, a synonym of ANY.
case All = 'ALL'ALL: true when the comparison holds for every value.
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
SublinkRuleTest::testQuantifierLowersSomecallsQuantifiedArrayTest::testDeriveScalarComparesWithTheElementTypecallsQuantifiedArrayTest::testDeriveScalarReportsANonArraycallsQuantifiedArrayTest::testRejectsAScalarSubquerycallsQuantifiedArrayTest::testRenderWritesTheQuantifiercallsQuantifiedSubqueryTest::testDeriveScalarComparesWithTheColumncallsQuantifiedSubqueryTest::testRejectsASumBeforeAProductOperatorcallsQuantifiedSubqueryTest::testRenderWritesAKeywordOperatorcalls
Relations§
Constant reads 3
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\SublinkRule packages/sql-semantics-postgres/src/Lowering/Expression/SublinkRule.php:41
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\SublinkRule packages/sql-semantics-postgres/src/Lowering/Expression/SublinkRule.php:41
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\SublinkRule packages/sql-semantics-postgres/src/Lowering/Expression/SublinkRule.php:41
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Lowering\Expression\SublinkRule packages/sql-semantics-postgres/src/Lowering/Expression/SublinkRule.php:129
- type SqlSemantics\Platform\PostgreSql\Statement\Expression\Subquery\QuantifiedArray packages/sql-semantics-postgres/src/Statement/Expression/Subquery/QuantifiedArray.php:47
- type SqlSemantics\Platform\PostgreSql\Statement\Expression\Subquery\QuantifiedSubquery packages/sql-semantics-postgres/src/Statement/Expression/Subquery/QuantifiedSubquery.php:49