enumAggregateAttribute
enum AggregateAttribute: string
implements KnownAttribute
@visibility public.An attribute CREATE AGGREGATE recognizes.
DefineAggregate reads the support functions (sfunc, finalfunc, combinefunc, serialfunc, deserialfunc, msfunc, minvfunc, mfinalfunc) as routine names, sortop as an operator, basetype, stype and mstype as type names, sspace and msspace as integers, the initial conditions as text, parallel and the modify attributes as fixed words and the rest as Booleans. sfunc1, stype1 and initcond1 are obsolete spellings of sfunc, stype and initcond. Any other attribute draws a warning and is ignored. Source: https://www.postgresql.org/docs/17/sql-createaggregate.html, DefineAggregate in src/backend/commands/aggregatecmds.c of PostgreSQL 17.
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Known\AggregateAttribute::from('sfunc')->reading() // => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading::FunctionCases§
case Sfunc = 'sfunc'case Sfunc1 = 'sfunc1'case Finalfunc = 'finalfunc'case Combinefunc = 'combinefunc'case Serialfunc = 'serialfunc'case Deserialfunc = 'deserialfunc'case Msfunc = 'msfunc'case Minvfunc = 'minvfunc'case Mfinalfunc = 'mfinalfunc'case FinalfuncExtra = 'finalfunc_extra'case MfinalfuncExtra = 'mfinalfunc_extra'case FinalfuncModify = 'finalfunc_modify'case MfinalfuncModify = 'mfinalfunc_modify'case Sortop = 'sortop'case Basetype = 'basetype'case Hypothetical = 'hypothetical'case Stype = 'stype'case Stype1 = 'stype1'case Sspace = 'sspace'case Mstype = 'mstype'case Msspace = 'msspace'case Initcond = 'initcond'case Initcond1 = 'initcond1'case Minitcond = 'minitcond'case Parallel = 'parallel'Methods§
public static function named(string $name): ?selfAnswers the member with exactly this name, or null.
Parameters
$name | string |
Returns
?selfTest cases 1
Calls 1
- static-call AggregateAttribute::tryFrom() line 91
public function text(): stringAnswers the attribute name the command compares with.
Returns
stringpublic function reading(): ReadingAnswers how the command reads the attribute's value.
Returns
Calls 1
- class-const AggregateAttribute::READINGS() line 107
Private surface 1§
Implementation details, listed for orientation only.
private const READINGS = ['sfunc' => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Readin…Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 2
Relations§
Constant reads 3
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Routine\DefineRule::old() packages/sql-semantics-postgres/src/Lowering/Routine/DefineRule.php:160
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\AttributeChecks packages/sql-semantics-postgres/src/Rules/Routine/AttributeChecks.php:61
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\AttributeReader packages/sql-semantics-postgres/src/Rules/Routine/AttributeReader.php:63