classCreateOperatorFamily
final class CreateOperatorFamily
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.CREATE OPERATOR FAMILY name USING method: defines an empty operator family.
Mirrors PostgreSQL's CreateOpFamilyStmt. Source: https://www.postgresql.org/docs/17/sql-createopfamily.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE OPERATOR FAMILY f USING btree');
$operation->statement->name->last()->value // => 'f'Properties§
public DottedName $namepublic Name $methodMethods§
public function __construct(public DottedName $name, public Name $method)Parameters
$name | DottedName | The family name |
$method | Name | The index access method |
public function deriveStatement(Derivation $derivation): voidDerives nothing: names hold no expression.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 50
- class-const NameUse::Column() line 50
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CreateOperatorFamilyTestcalls