classCompoundStep
final class CompoundStep
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One further arm of a compound query with the operator before it.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1 EXCEPT SELECT 2');
$query->statement->steps[0]->query->columns[0]->expression->digits // => '2'Properties§
public CompoundOperator $operatorpublic Select|ValuesClause $queryMethods§
public function __construct(
public CompoundOperator $operator,
public Select|ValuesClause $query,
)Parameters
$operator | CompoundOperator | The operator before the arm |
$query | Select|ValuesClause | The arm |
public function render(Output $out): voidWrites the operator and the arm.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 36
- function-call
explodeline 36
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CompoundStepTestcalls
Other tests reaching this symbol 6
SelectRuleTest::testBodyLowersACompoundQueryWithItsArmsInOrderAndTheTrailingOrderByAndLimitcallsSelectRuleTest::testOperatorLowersEveryCompoundOperatorAsWrittencallsCompoundTest::testRenderRefusesAnIntegerConstantAsAnOrdinaryOrderByTermcallsCompoundTest::testRenderRefusesAnOrderingAfterAValuesArmcallsCompoundTest::testRenderRefusesAnOrderingLeftOnTheLastArmcallsCompoundTest::testRenderWritesANewlyBuiltCompoundcalls