final class StorageMember
    implements OperatorClassItem
    uses Snapshot
Public API: explicitly declared with @visibility public.

STORAGE type: the data type actually stored in an index of the operator class.

Source: https://www.postgresql.org/docs/17/sql-createopclass.html.

Reading the storage typedoctest
$type = new \SqlSemantics\Platform\PostgreSql\Statement\Type\TypeName(new \SqlSemantics\Platform\PostgreSql\Statement\Type\Designation\NamedDesignation(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('int4')])));
    (new \SqlSemantics\Platform\PostgreSql\Statement\Operator\StorageMember($type))->type === $type // => true

Properties§

public TypeName $type

Methods§

public function __construct(public TypeName $type)

Parameters

$typeTypeNameThe stored type
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the type modifiers.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
Calls 1
public function render(Output $out): void

Writes STORAGE and the type.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 1