classParallelSafety
final class ParallelSafety
implements RoutineOption
uses Snapshot
Public API: explicitly declared with
@visibility public.PARALLEL level: whether the routine can run in parallel mode.
The grammar reads any word; the server accepts safe, restricted and unsafe only, which is checked when the statement is derived. Source: https://www.postgresql.org/docs/17/sql-createfunction.html.
(new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\ParallelSafety(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('safe')))->valid() // => trueProperties§
public Name $levelMethods§
public function valid(): boolTells whether the server accepts the level.
Returns
boolTest cases 1
Calls 1
- function-call
in_arrayline 41
public function alterable(): boolTells that ALTER accepts the option.
Returns
boolTest cases 1
public function setting(): stringpublic function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: a word holds no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
public function render(Output $out): voidWrites PARALLEL and the level.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::keyword() line 72
- class-const NameUse::Column() line 72
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.