classAlterServer
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.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze("alter server s options (user 'u')")->toString() // => "ALTER SERVER s OPTIONS (USER 'u')"Properties§
public list<ServerOption> $optionspublic Name $nameMethods§
public function __construct(public Name $name, list<ServerOption> $options)Parameters
$name | Name | The server name |
$options | list<ServerOption> | The options in written order; at least one |
Throws
InvalidConstruction When there is no optionCalls 2
- static-call Check::listOf() line 44
- class-const ServerOption::class() line 44
public function deriveStatement(Derivation $derivation): voidHas nothing to derive: a server is no relation.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 59
- class-const NameUse::Identifier() line 59
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
AlterServerTestcalls