classAlterTablespaceOptions
final class AlterTablespaceOptions
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to set or reset parameters of a tablespace.
Rule: PG-TABLESPACE-003. Mirrors AlterTableSpaceOptionsStmt with its isReset flag. RESET names parameters only; a value given to RESET is a diagnostic. Source: https://www.postgresql.org/docs/17/sql-altertablespace.html. Status: Implemented.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLESPACE fast RESET (seq_page_cost)');
[$operation->statement->reset, $operation->facts->diagnostics] // => [true, []]Properties§
public non-empty-list<Definition> $optionspublic Name $namepublic bool $resetMethods§
public function __construct(public Name $name, public bool $reset, list<Definition> $options)Parameters
$name | Name | The tablespace name |
$reset | bool | Whether the parameters are reset instead of set |
$options | list<Definition> | The parameters; at least one |
Calls 2
- static-call Check::listOf() line 47
- class-const Definition::class() line 47
public function deriveStatement(Derivation $derivation): voidDerives the values and reports a value given to RESET.
Parameters
$derivation | Derivation |
Calls 5
- method-call ClauseFacts::derive() line 55
- new ClauseFacts line 55
- method-call Derivation::report() line 58
- new CatalogMisuse line 58
- class-const CatalogMisuseRule::ResetWithValues() line 58
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 70
- class-const NameUse::Column() line 70
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
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\DatabaseRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/DatabaseRule.php:90
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\DatabaseRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/DatabaseRule.php:91