enum AggregateAttribute: string
    implements KnownAttribute
Public API: explicitly declared with @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.

Reading how the command reads an attributedoctest
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Known\AggregateAttribute::from('sfunc')->reading() // => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading::Function

Cases§

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): ?self

Answers the member with exactly this name, or null.

Parameters

$namestring

Returns

?self
Test cases 1
Calls 1
public function text(): string

Answers the attribute name the command compares with.

Returns

string
public function reading(): Reading

Answers how the command reads the attribute's value.

Returns

Calls 1

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