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

How a command reads the value of one of its definition attributes.

PostgreSQL's commands read a DefElem value with one of the defGet* functions of src/backend/commands/define.c: as the name of an object (defGetQualifiedName), as a type name (defGetTypeName), as a Boolean, an integer, a type length or text, or as text compared with a fixed set of words. The obsolete operator attributes sort1, sort2, ltcmp and gtcmp are recognized without reading their value. Source: https://www.postgresql.org/docs/17/sql-createoperator.html, https://www.postgresql.org/docs/17/sql-createaggregate.html, https://www.postgresql.org/docs/17/sql-createtype.html, src/backend/commands/define.c of PostgreSQL 17.

Telling what kind of object a function attribute namesdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading::Function->kind() // => \SqlSemantics\Platform\PostgreSql\Statement\Name\ObjectKind::Function

Cases§

case Function
case Operator
case OperatorClass
case Collation
case TextSearchParser
case TextSearchTemplate
case TextSearchConfiguration
case CreatedType
case Type
case Boolean
case Integer
case Text
case Length
case Parallelism
case FinalModification
case Alignment
case Storage
case Provider
case Ignored

Methods§

public static function kinds(): list<ObjectKind>

Private surface 2§

Implementation details, listed for orientation only.

private const KINDS = ['Function' => \SqlSemantics\Platform\PostgreSql\Statement\Name\ObjectKind::Fun…
private const CHOICES = ['Parallelism' => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\…

Test cases 26§

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 23

Relations§

Static calls 1
Method calls 5
Constant reads 120
Type declarations 22