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

SET ( ... ) or RESET ( ... ): the storage parameters of the relation.

Mirrors AT_SetRelOptions and AT_ResetRelOptions. Source: https://www.postgresql.org/docs/17/sql-altertable.html.

Setting storage parametersdoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t SET (fillfactor = 70)');
    $statement->toString() // => 'ALTER TABLE t SET (fillfactor = 70)'

Properties§

public non-empty-list<Definition> $options
public bool $reset

Methods§

public function __construct(public bool $reset, list<Definition> $options)

Parameters

$resetboolWhether the parameters are reset; set otherwise
$optionslist<Definition>The parameters
Calls 2
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the parameters.

Parameters

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

Writes the action.

Parameters

$outOutput
Calls 3

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