classDropServer
final class DropServer
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.DROP SERVER [IF EXISTS] name: a request to remove a FEDERATED server definition.
Mirrors SQLCOM_DROP_SERVER. Rule: MYSQL-DROP-SERVER-001. Source: https://dev.mysql.com/doc/refman/8.4/en/drop-server.html. Status: Implemented.
$drop = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("drop server if exists 's'");
[$drop->toString(), $drop->statement->name->value] // => ['DROP SERVER IF EXISTS s', 's']Properties§
public bool $ifExistspublic Name $nameMethods§
public function __construct(public bool $ifExists, public Name $name)Parameters
$ifExists | bool | Whether IF EXISTS is written |
$name | Name | The server name |
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 3
- method-call Output::keyword() line 50
- method-call Output::name() line 54
- class-const NameUse::Identifier() line 54
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DropServerTestcalls