classMemberPurpose
final class MemberPurpose
implements Clause
uses Snapshot
Public API: explicitly declared with
@visibility public.FOR SEARCH or FOR ORDER BY sort_family: what an operator of an operator class is for.
Without the clause an operator is for searching, as with FOR SEARCH; the written clause is kept. An ordering operator names the btree operator family that sorts its results. Source: https://www.postgresql.org/docs/17/sql-createopclass.html.
(new \SqlSemantics\Platform\PostgreSql\Statement\Operator\MemberPurpose())->sortFamily // => nullProperties§
public DottedName|null $sortFamily = nullMethods§
public function __construct(public DottedName|null $sortFamily = null)Parameters
$sortFamily | DottedName|null | The sort operator family of an ordering operator; null for FOR SEARCH |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: a name holds no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
public function render(Output $out): voidWrites FOR SEARCH or FOR ORDER BY and the family.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 49
Test cases 3§
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 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\OperatorClassRule::purpose() packages/sql-semantics-postgres/src/Lowering/Routine/OperatorClassRule.php:141
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\OperatorClassRule::purpose() packages/sql-semantics-postgres/src/Lowering/Routine/OperatorClassRule.php:142