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

RENAME USER old TO new, …: a request to rename accounts, applied pair by pair in order.

Mirrors SQLCOM_RENAME_USER. Rule: MYSQL-RENAME-USER-001. Accounts are not declared in a context, so the statement has no resolution facts. Source: https://dev.mysql.com/doc/refman/8.4/en/rename-user.html. Status: Implemented.

Renaming two accountsdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('rename user a to b, c to d')->toString() // => 'RENAME USER a TO b, c TO d'

Properties§

public list<UserRenaming> $renamings

Methods§

public function __construct(list<UserRenaming> $renamings)

Parameters

$renamingslist<UserRenaming>The renamings in order; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement names no relation and no expression.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 1

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type declarations 1