enum OperatorChangeAttribute: string
    implements KnownAttribute
Public API: explicitly declared with @visibility public.

An attribute ALTER OPERATOR ... SET recognizes.

AlterOperator reads restrict and join as selectivity estimators (without a value, or with NONE, the estimator is removed), and from PostgreSQL 17 commutator and negator as operators and merges and hashes as Booleans. leftarg, rightarg, function and procedure, and in PostgreSQL 16 also commutator, negator, merges and hashes, are recognized only to be refused: they cannot be changed. Any other attribute is an error. Source: https://www.postgresql.org/docs/17/sql-alteroperator.html, AlterOperator in src/backend/commands/operatorcmds.c of PostgreSQL 16 and 17.

Reading how the command reads an attributedoctest
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Known\OperatorChangeAttribute::from('negator')->reading() // => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading::Operator

Cases§

case Restrict = 'restrict'
case Join = 'join'
case Commutator = 'commutator'
case Negator = 'negator'
case Merges = 'merges'
case Hashes = 'hashes'
case Leftarg = 'leftarg'
case Rightarg = 'rightarg'
case Function = 'function'
case Procedure = 'procedure'

Methods§

public static function named(string $name): ?self

Answers the member with exactly this name, or null.

Parameters

$namestring

Returns

?self
Test cases 1
Calls 1
public function text(): string

Answers the attribute name the command compares with.

Returns

string
public function reading(): Reading

Answers how the command reads the attribute's value.

Returns

Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private const READINGS = ['restrict' => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Rea…

Test cases 5§

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

Dedicated tests 3
Other tests reaching this symbol 2

Relations§

Constant reads 5
Type checks 1