enumCompoundOperator
enum CompoundOperator: string
Public API: explicitly declared with
@visibility public.The operators that combine the rows of two queries.
Source: https://sqlite.org/lang_select.html#compound_select_statements.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1 UNION ALL SELECT 2');
$query->statement->steps[0]->operator // => \SqlSemantics\Platform\Sqlite\Statement\Query\CompoundOperator::UnionAllCases§
case Union = 'UNION'case UnionAll = 'UNION ALL'case Except = 'EXCEPT'case Intersect = 'INTERSECT'Test cases 8§
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 7
SelectRuleTest::testBodyLowersACompoundQueryWithItsArmsInOrderAndTheTrailingOrderByAndLimitcallsCompoundStepTest::testRenderWritesIntersectcallsCompoundStepTest::testRenderWritesTheOperatorBeforeTheArmcallsCompoundTest::testRenderRefusesAnIntegerConstantAsAnOrdinaryOrderByTermcallsCompoundTest::testRenderRefusesAnOrderingAfterAValuesArmcallsCompoundTest::testRenderRefusesAnOrderingLeftOnTheLastArmcallsCompoundTest::testRenderWritesANewlyBuiltCompoundcalls