final class UserRenaming
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

One old_user TO new_user pair of RENAME USER.

Source: https://dev.mysql.com/doc/refman/8.4/en/rename-user.html.

Holding a renamingdoctest
$pair = new \SqlSemantics\Platform\MySql\Statement\Account\User\UserRenaming(new \SqlSemantics\Platform\MySql\Statement\Name\AccountName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('a')), new \SqlSemantics\Platform\MySql\Statement\Name\AccountName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('b')));
    $pair->to instanceof \SqlSemantics\Platform\MySql\Statement\Name\AccountName // => true

Properties§

public Account $from
public Account $to

Methods§

public function __construct(public Account $from, public Account $to)

Parameters

$fromAccountThe account renamed
$toAccountIts new name
public function render(Output $out): void

Writes the pair.

Parameters

$outOutput
Calls 1

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
Constant reads 1