classRelationOptions
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.
$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> $optionspublic bool $resetMethods§
public function __construct(public bool $reset, list<Definition> $options)Parameters
$reset | bool | Whether the parameters are reset; set otherwise |
$options | list<Definition> | The parameters |
Calls 2
- static-call Check::listOf() line 42
- class-const Definition::class() line 42
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the parameters.
Parameters
$derivation | Derivation | |
$environment | Environment |
public function render(Output $out): voidWrites the action.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 60
- method-call Writing::definitions() line 61
- new Writing line 61
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RelationOptionsTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule::setting() packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:210
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule::setting() packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:211