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.

Telling a search operatordoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Operator\MemberPurpose())->sortFamily // => null

Properties§

public DottedName|null $sortFamily = null

Methods§

public function __construct(public DottedName|null $sortFamily = null)

Parameters

$sortFamilyDottedName|nullThe sort operator family of an ordering operator; null for FOR SEARCH
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a name holds no expression.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
public function render(Output $out): void

Writes FOR SEARCH or FOR ORDER BY and the family.

Parameters

$outOutput
Test cases 1
Calls 1

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
Type declarations 2