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

An attribute CREATE TEXT SEARCH PARSER recognizes.

DefineTSParser reads each attribute as the name of one of the parser's functions. Any other attribute is an error. Source: https://www.postgresql.org/docs/17/sql-createtsparser.html, DefineTSParser in src/backend/commands/tsearchcmds.c of PostgreSQL 17.

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

Cases§

case Start = 'start'
case Gettoken = 'gettoken'
case End = 'end'
case Headline = 'headline'
case Lextypes = 'lextypes'

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

Test cases 1
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private const READINGS = ['start' => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Readin…

Test cases 4§

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 1

Relations§

Constant reads 2