enumCollationProvider
enum CollationProvider: string
implements Choice
Public API: explicitly declared with
@visibility public.The provider attribute of a collation: the library that provides it.
DefineCollation compares the text without regard to case. The builtin provider exists from PostgreSQL 17 on; PostgreSQL 16 reports it as an unrecognized provider. Source: https://www.postgresql.org/docs/17/sql-createcollation.html, DefineCollation in src/backend/commands/collationcmds.c of PostgreSQL 16 and 17.
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Choice\CollationProvider::read('ICU')?->name // => 'Icu'Cases§
case Builtin = 'builtin'case Icu = 'icu'case Libc = 'libc'Methods§
public static function read(string $text): ?selfAnswers the provider the text names without regard to case, or null.
Parameters
$text | string |
Returns
?selfTest cases 1
Calls 2
- static-call CollationProvider::tryFrom() line 30
- function-call
strtolowerline 30
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 3
Relations§
Constant reads 7
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\AttributeChecks::value() packages/sql-semantics-postgres/src/Rules/Routine/AttributeChecks.php:120
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\DefineChecks::collation() packages/sql-semantics-postgres/src/Rules/Routine/DefineChecks.php:210
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\DefineChecks::collation() packages/sql-semantics-postgres/src/Rules/Routine/DefineChecks.php:211
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\DefineChecks::provided() packages/sql-semantics-postgres/src/Rules/Routine/DefineChecks.php:228
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\DefineChecks::provided() packages/sql-semantics-postgres/src/Rules/Routine/DefineChecks.php:234
- class-const SqlSemantics\Platform\PostgreSql\Rules\Routine\DefineChecks::provided() packages/sql-semantics-postgres/src/Rules/Routine/DefineChecks.php:237
- class-const SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Reading packages/sql-semantics-postgres/src/Statement/Object/Attribute/Reading.php:75