enum GroupingModifier
Public API: explicitly declared with @visibility public.

The super-aggregate modifier of a GROUP BY clause.

WITH ROLLUP follows the grouping list; WITH CUBE is accepted by the 5.x grammars only (the server rejects it as not supported); ROLLUP (...) and CUBE (...) enclose the grouping list (MySQL 8.3 and later grammars). Source: https://dev.mysql.com/doc/refman/8.4/en/group-by-modifiers.html.

Reading the modifier of a groupingdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t GROUP BY a WITH ROLLUP');
    $query->statement->groupBy->modifier // => \SqlSemantics\Platform\MySql\Statement\Query\Clause\GroupingModifier::WithRollup

Cases§

case WithRollup
case WithCube
case Rollup
case Cube

Test cases 2§

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 1

Relations§

Constant reads 8
Type declarations 2