final class OperatorGroupName
    implements ObjectReference
    uses Snapshot
Public API: explicitly declared with @visibility public.

An operator class or family named with its index access method: name USING method.

Operator classes and families are named per access method. Source: https://www.postgresql.org/docs/17/sql-dropopclass.html.

Reading the access methoddoctest
$name = new \SqlSemantics\Platform\PostgreSql\Statement\Object\Reference\OperatorGroupName(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('int4_ops')]), new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('btree'));
    $name->method->value // => 'btree'

Properties§

public DottedName $name
public Name $method

Methods§

public function __construct(public DottedName $name, public Name $method)

Parameters

$nameDottedNameThe class or family name
$methodNameThe index access method
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: names hold no expression.

Parameters

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

Writes the name, USING and the access method.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 4§

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 2

Relations§

Instantiated in 4
Type checks 1