enumTemplateAttribute
enum TemplateAttribute: string
implements KnownAttribute
Public API: explicitly declared with
@visibility public.An attribute CREATE TEXT SEARCH TEMPLATE recognizes.
DefineTSTemplate reads init and lexize as the names of the template's functions. Any other attribute is an error. Source: https://www.postgresql.org/docs/17/sql-createtstemplate.html, DefineTSTemplate in src/backend/commands/tsearchcmds.c of PostgreSQL 17.
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Known\TemplateAttribute::from('lexize')->reading() // => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading::FunctionCases§
case Init = 'init'case Lexize = 'lexize'Methods§
public static function named(string $name): ?selfAnswers the member with exactly this name, or null.
Parameters
$name | string |
Returns
?selfTest cases 1
Calls 1
- static-call TemplateAttribute::tryFrom() line 39
public function text(): stringAnswers the attribute name the command compares with.
Returns
stringpublic function reading(): ReadingAnswers how the command reads the attribute's value.
Returns
Test cases 1
Calls 1
- class-const TemplateAttribute::READINGS() line 55
Private surface 1§
Implementation details, listed for orientation only.
private const READINGS = ['init' => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading…Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.