final class Options
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers the generic option machinery.

Rule: PG-OPTION-001. Scope: definition, def_list, def_elem, def_arg, opt_definition, reloptions, opt_reloptions, reloption_list, reloption_elem, create_generic_options, generic_option_list, generic_option_elem, alter_generic_options, alter_generic_option_list, alter_generic_option_elem, opt_boolean_or_string, NonReservedWord_or_Sconst, var_value, var_list, var_name. Constructors: Definition, GenericOption, AlteredOption, Word, KeywordWord, Toggle. An absent optional list is empty. An option changed without an action is added, as the manual states. Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS, https://www.postgresql.org/docs/17/sql-alterforeigndatawrapper.html, https://www.postgresql.org/docs/17/sql-set.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function definitions(Node $list): list<Definition>

Lowers definition, opt_definition, reloptions or opt_reloptions; an absent list is empty.

Parameters

$listNode

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 4
public function definition(Node $element): Definition

Lowers reloption_elem, or def_elem through element().

Parameters

$elementNode

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 3
public function elements(Node $definition): list<array{Name, TypeName|KeywordWord|OperatorName|SignedNumber|StringConstant|null}>

Lowers definition into the name and the written value of each attribute, in written order.

Parameters

$definitionNode

Throws

ImplementationGap When the production has no rule
Calls 3
public function genericOptions(Node $list): list<GenericOption>

Lowers create_generic_options or generic_option_list; an absent list is empty.

Parameters

$listNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 3
public function alteredOptions(Node $list): list<AlteredOption>

Lowers alter_generic_options.

Parameters

$listNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 7
public function wordOrString(Node $value): Word|StringConstant

Lowers NonReservedWord_or_Sconst.

Parameters

$valueNode

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 2
public function values(Node $list): list<OptionArgument>

Lowers var_list.

Parameters

$listNode

Returns

Calls 2
public function variable(Node $name): list<Name>

Lowers var_name: the parts of the dotted name of a configuration parameter, each of which the grammar reads as a ColId.

Parameters

$nameNode

Returns

list<Name>
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 1