classMoveDatabase
final class MoveDatabase
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to move a database to another default tablespace: ALTER DATABASE name SET TABLESPACE tablespace.
Rule: PG-ALTERDB-002. Mirrors AlterDatabaseStmt with the single option tablespace. Source: https://www.postgresql.org/docs/17/sql-alterdatabase.html. Status: Implemented.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER DATABASE d SET TABLESPACE fast');
$operation->statement->tablespace->value // => 'fast'Properties§
public Name $namepublic Name $tablespaceMethods§
public function deriveStatement(Derivation $derivation): voidDerives nothing: the command names a database and a tablespace, which are not part of a declaration context.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 49
- class-const NameUse::Column() line 49
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
MoveDatabaseTestcalls