final class ForeignOptions
    implements AlterCommand
    uses Snapshot
Public API: explicitly declared with @visibility public.

OPTIONS ( ... ): changes the options of a foreign table.

Mirrors AT_GenericOptions; each option is added, set or dropped. Source: https://www.postgresql.org/docs/17/sql-altertable.html.

Changing foreign table optionsdoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("ALTER FOREIGN TABLE f OPTIONS (SET a 'b', DROP c)");
    $statement->toString() // => "ALTER FOREIGN TABLE f OPTIONS (SET a 'b', DROP c)"

Properties§

public non-empty-list<AlteredOption> $options

Methods§

public function __construct(list<AlteredOption> $options)

Parameters

$optionslist<AlteredOption>The changes
Calls 2
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: options are constants.

Parameters

$derivationDerivation
$environmentEnvironment
public function render(Output $out): void

Writes OPTIONS and the changes.

Parameters

$outOutput
Calls 1

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 checks 1