enum AggregateFunction: string
Public API: explicitly declared with @visibility public.

The aggregate functions that take one argument, or for COUNT(DISTINCT ...) several, and an optional quantifier.

Each case holds the keyword. STDDEV and STDDEV_POP are the keyword STD, VAR_POP is VARIANCE to the lexer. Source: https://dev.mysql.com/doc/refman/8.4/en/aggregate-functions.html, https://dev.mysql.com/doc/refman/8.4/en/spatial-aggregate-functions.html.

Reading whether a function takes DISTINCTdoctest
[\SqlSemantics\Platform\MySql\Statement\Call\Aggregate\AggregateFunction::Sum->value, \SqlSemantics\Platform\MySql\Statement\Call\Aggregate\AggregateFunction::Sum->distinctive()] // => ['SUM', true]

Cases§

case Average = 'AVG'
case BitAnd = 'BIT_AND'
case BitOr = 'BIT_OR'
case BitXor = 'BIT_XOR'
case Count = 'COUNT'
case Minimum = 'MIN'
case Maximum = 'MAX'
case StandardDeviation = 'STD'
case Variance = 'VARIANCE'
case SampleStandardDeviation = 'STDDEV_SAMP'
case SampleVariance = 'VAR_SAMP'
case Sum = 'SUM'
case JsonArray = 'JSON_ARRAYAGG'
case Collect = 'ST_COLLECT'

Methods§

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

Relations§

Method calls 1
Constant reads 57
Type declarations 1