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

USER() at the account position of ALTER USER: the account of the session.

ALTER USER USER() changes the password or the registration of the session's own account; it is written only in the forms that a user may apply to itself. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-user.html.

Rendering the session accountdoctest
$out = new \SqlSemantics\Platform\MySql\Model\Rendering\Output(new \SqlSemantics\Platform\MySql\Rendering\Codec(\SqlSemantics\Platform\MySql\Model\Contract\GrammarRelease::MySql847));
    (new \SqlSemantics\Platform\MySql\Statement\Account\User\SessionUser())->render($out);
    $out->pieces()[0]->text // => 'USER'

Methods§

public function render(Output $out): void

Writes USER().

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 checks 2
Type declarations 4