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.

Reading a further armdoctest
$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 $operator

Methods§

public function __construct(
    public CompoundOperator $operator,
    public Select|ValuesClause $query,
)

Parameters

$operatorCompoundOperatorThe operator before the arm
$querySelect|ValuesClauseThe arm
public function render(Output $out): void

Writes the operator and the arm.

Parameters

$outOutput
Calls 2

Test cases 7§

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 6

Relations§

Instantiated in 1
Constant reads 1
Type declarations 1