classOperatorGroupName
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.
$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 $namepublic Name $methodMethods§
public function __construct(public DottedName $name, public Name $method)Parameters
$name | DottedName | The class or family name |
$method | Name | The index access method |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: names hold no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
public function render(Output $out): voidWrites the name, USING and the access method.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::node() line 51
- class-const NameUse::Column() line 51
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
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ExtensionRule::contents() packages/sql-semantics-postgres/src/Lowering/Catalog/ExtensionRule.php:137
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\DropRule::signed() packages/sql-semantics-postgres/src/Lowering/Routine/DropRule.php:94
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\ObjectRule::operator() packages/sql-semantics-postgres/src/Lowering/Routine/ObjectRule.php:194
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\ObjectRule::altered() packages/sql-semantics-postgres/src/Lowering/Routine/ObjectRule.php:213