final class OperatorClassRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers operator classes, operator families and ALTER OPERATOR.

Rule: PG-OPCLASS-LOWER-001. Scope: CreateOpClassStmt, opclass_item_list, opclass_item, opt_opfamily, opclass_purpose, opt_recheck, CreateOpFamilyStmt, AlterOpFamilyStmt, opclass_drop_list, opclass_drop, AlterOperatorStmt, operator_def_list, operator_def_elem, operator_def_arg. Constructors: CreateOperatorClass, CreateOperatorFamily, OperatorFamilyAddition, OperatorFamilyRemoval, AlterOperator, the class items, MemberRemoval and AttributeChange. RECHECK is obsolete and ignored by the server; it is a noise word. Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-createopclass.html, https://www.postgresql.org/docs/17/sql-alteropfamily.html, https://www.postgresql.org/docs/17/sql-alteroperator.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function family(Node $family): ?DottedName

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 8§

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

Dedicated tests 8

Relations§

Instantiated in 2
Method calls 2