final class OptionArguments
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Reads the value of a utility option the way the server does.

Rule: PG-UTILITY-OPTION-VALUE-001. A Boolean option without a value is true. With a value, the integers 0 and 1 are false and true, and a word, a string or one of the keywords TRUE, FALSE and ON is true for true and on and false for false and off, compared without regard to case; any other value is not Boolean. An integer option takes an integer constant that fits in 32 bits: the lexer reads a larger integer as a decimal number, which is not an integer. When an option is written more than once, the last occurrence decides. Termination: one pass over a finite list. Source: https://www.postgresql.org/docs/17/sql-explain.html, https://www.postgresql.org/docs/17/sql-vacuum.html, https://www.postgresql.org/docs/17/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS-NUMERIC. Status: Implemented.

Methods§

public function enabled(list<UtilityOption> $options, string $name, bool $default): bool

Answers the Boolean value of the last option of a name, or a default when none is written or its value is not Boolean.

Parameters

$optionslist<UtilityOption>
$namestring
$defaultbool

Returns

bool
Test cases 1
Called from 11
Calls 3

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4

Relations§

Instantiated in 6
Method calls 14