enumCollationAttribute
enum CollationAttribute: string
implements KnownAttribute
Public API: explicitly declared with
@visibility public.An attribute CREATE COLLATION name ( ... ) recognizes.
DefineCollation reads from as a collation to copy, provider as a fixed word, deterministic as a Boolean and the locale attributes, rules and version as text. Each attribute may be given once; any other attribute is an error. Source: https://www.postgresql.org/docs/17/sql-createcollation.html, DefineCollation in src/backend/commands/collationcmds.c of PostgreSQL 17.
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Known\CollationAttribute::from('provider')->reading() // => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading::ProviderCases§
case From = 'from'case Locale = 'locale'case LcCollate = 'lc_collate'case LcCtype = 'lc_ctype'case Provider = 'provider'case Deterministic = 'deterministic'case Rules = 'rules'case Version = 'version'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 CollationAttribute::tryFrom() line 53
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
Calls 1
- class-const CollationAttribute::READINGS() line 69
Private surface 1§
Implementation details, listed for orientation only.
private const READINGS = ['from' => \SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading…Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.