enum RangeAttribute: string
    implements KnownAttribute
Public API: explicitly declared with @visibility public.

An attribute CREATE TYPE name AS RANGE ( ... ) recognizes.

DefineRange reads subtype as a type name, subtype_opclass as an operator class, collation as a collation, canonical and subtype_diff as routine names and multirange_type_name as the name of the multirange type it creates. Each attribute may be given once; any other attribute is an error. Source: https://www.postgresql.org/docs/17/sql-createtype.html, DefineRange in src/backend/commands/typecmds.c of PostgreSQL 17.

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

Cases§

case Subtype = 'subtype'
case SubtypeOpclass = 'subtype_opclass'
case Collation = 'collation'
case Canonical = 'canonical'
case SubtypeDiff = 'subtype_diff'
case MultirangeTypeName = 'multirange_type_name'

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 = ['subtype' => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Read…

Test cases 7§

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 4

Relations§

Static calls 1
Constant reads 3
Type checks 1