enumParallelism
enum Parallelism: string
implements Choice
Public API: explicitly declared with
@visibility public.The parallel attribute of an aggregate: whether it is safe to run in parallel mode.
DefineAggregate compares the text with safe, restricted and unsafe exactly, so a quoted 'SAFE' is rejected while an unquoted SAFE is folded to lower case and accepted. Source: https://www.postgresql.org/docs/17/sql-createaggregate.html, DefineAggregate in src/backend/commands/aggregatecmds.c of PostgreSQL 17.
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Choice\Parallelism::read('SAFE') // => nullCases§
case Safe = 'safe'case Restricted = 'restricted'case Unsafe = 'unsafe'Methods§
public static function read(string $text): ?selfAnswers the mode the text names exactly, or null.
Parameters
$text | string |
Returns
?selfTest cases 1
Calls 1
- static-call Parallelism::tryFrom() line 30
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.