final class AlterServer
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

ALTER SERVER name OPTIONS (option, …): a request to change the options of a FEDERATED server.

Mirrors SQLCOM_ALTER_SERVER with Server_options. Rule: MYSQL-ALTER-SERVER-001. Only the options written change. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-server.html. Status: Implemented.

Changing the user of a serverdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze("alter server s options (user 'u')")->toString() // => "ALTER SERVER s OPTIONS (USER 'u')"

Properties§

public list<ServerOption> $options
public Name $name

Methods§

public function __construct(public Name $name, list<ServerOption> $options)

Parameters

$nameNameThe server name
$optionslist<ServerOption>The options in written order; at least one

Throws

InvalidConstruction When there is no option
Calls 2
public function deriveStatement(Derivation $derivation): void

Has nothing to derive: a server is no relation.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 2

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