final class OperatorFamilyRemoval
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

ALTER OPERATOR FAMILY name USING method DROP member, ...: removes operators and support functions from a family.

Mirrors PostgreSQL's AlterOpFamilyStmt with isDrop true. Source: https://www.postgresql.org/docs/17/sql-alteropfamily.html.

Counting the removed membersdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER OPERATOR FAMILY f USING btree DROP FUNCTION 1 (int4, int8)');
    count($operation->statement->members) // => 1

Properties§

public non-empty-list<MemberRemoval> $members
public DottedName $name
public Name $method

Methods§

public function __construct(
    public DottedName $name,
    public Name $method,
    list<MemberRemoval> $members,
)

Parameters

$nameDottedNameThe family name
$methodNameThe index access method
$memberslist<MemberRemoval>The removed members; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives the operand types.

Parameters

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

Writes the statement.

Parameters

$outOutput
Calls 2

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1