classOperatorFamilyRemoval
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER OPERATOR FAMILY f USING btree DROP FUNCTION 1 (int4, int8)');
count($operation->statement->members) // => 1Properties§
public non-empty-list<MemberRemoval> $memberspublic DottedName $namepublic Name $methodMethods§
public function __construct(
public DottedName $name,
public Name $method,
list<MemberRemoval> $members,
)Parameters
$name | DottedName | The family name |
$method | Name | The index access method |
$members | list<MemberRemoval> | The removed members; at least one |
Calls 2
- static-call Check::listOf() line 43
- class-const MemberRemoval::class() line 43
public function deriveStatement(Derivation $derivation): voidDerives the operand types.
Parameters
$derivation | Derivation |
Calls 1
- method-call Derivation::environment() line 51
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 62
- class-const NameUse::Column() line 62
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.