interfaceKnownAttribute
interface KnownAttribute
Public API: explicitly declared with
@visibility public.An attribute name a command recognizes, with the way the command reads its value.
Each command compares the attribute names with the names it knows, respecting case; an unquoted name is folded to lower case first. Each command has its own set: the cases of the enum for that command. Source: https://www.postgresql.org/docs/17/sql-createoperator.html, DefineOperator in src/backend/commands/operatorcmds.c of PostgreSQL 17.
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Known\OperatorAttribute::named('function')?->reading() // => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading::FunctionMethods§
public static function named(string $name): ?selfAnswers the member with exactly this name, or null when the command does not recognize the name.
Parameters
$name | string |
Returns
?selfpublic function text(): stringAnswers the attribute name the command compares with.
Returns
stringpublic function reading(): ReadingAnswers how the command reads the attribute's value.
Returns
Called from 2
- method-call SqlSemantics\Platform\PostgreSql\Rules\Routine\AttributeChecks::value() packages/sql-semantics-postgres/src/Rules/Routine/AttributeChecks.php:113
- method-call SqlSemantics\Platform\PostgreSql\Rules\Routine\ChangeChecks::changeable() packages/sql-semantics-postgres/src/Rules/Routine/ChangeChecks.php:83
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Implemented by 11
- AggregateAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/AggregateAttribute.php:27
- BaseTypeAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/BaseTypeAttribute.php:26
- CollationAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/CollationAttribute.php:23
- ConfigurationAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/ConfigurationAttribute.php:22
- DictionaryAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/DictionaryAttribute.php:22
- OperatorAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/OperatorAttribute.php:25
- OperatorChangeAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/OperatorChangeAttribute.php:26
- ParserAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/ParserAttribute.php:21
- RangeAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/RangeAttribute.php:24
- TemplateAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/TemplateAttribute.php:21
- TypeChangeAttribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Known/TypeChangeAttribute.php:24
Method calls 2
- method-call SqlSemantics\Platform\PostgreSql\Rules\Routine\AttributeChecks::value() packages/sql-semantics-postgres/src/Rules/Routine/AttributeChecks.php:113
- method-call SqlSemantics\Platform\PostgreSql\Rules\Routine\ChangeChecks::changeable() packages/sql-semantics-postgres/src/Rules/Routine/ChangeChecks.php:83
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Rules\Routine\AttributeChecks packages/sql-semantics-postgres/src/Rules/Routine/AttributeChecks.php:109
- type SqlSemantics\Platform\PostgreSql\Rules\Routine\ChangeChecks packages/sql-semantics-postgres/src/Rules/Routine/ChangeChecks.php:79
- type SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Attribute packages/sql-semantics-postgres/src/Statement/Object/Attribute/Attribute.php:54