final class GenericOption
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

One option of an OPTIONS ( name 'value', ... ) list of a foreign-data object.

Source: https://www.postgresql.org/docs/17/sql-createforeigntable.html.

Reading a foreign-data optiondoctest
$option = new \SqlSemantics\Platform\PostgreSql\Statement\Option\GenericOption(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('host'), new \SqlSemantics\Platform\PostgreSql\Statement\Literal\StringConstant('db1'));
    [$option->name->value, $option->value->value] // => ['host', 'db1']

Properties§

public Name $name

Methods§

public function __construct(public Name $name, public StringConstant $value)

Parameters

$nameNameThe option name
$valueStringConstantThe option value
public function render(Output $out): void

Writes the name and the value.

Parameters

$outOutput
Test cases 1
Calls 2

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
Constant reads 6