classRenameUser
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.
(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> $renamingsMethods§
public function __construct(list<UserRenaming> $renamings)Parameters
$renamings | list<UserRenaming> | The renamings in order; at least one |
Calls 2
- static-call Check::listOf() line 39
- class-const UserRenaming::class() line 39
public function deriveStatement(Derivation $derivation): voidDerives nothing: the statement names no relation and no expression.
Parameters
$derivation | Derivation |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RenameUserTestcalls