final class CurrentUser
    implements Account
    uses Snapshot
Public API: explicitly declared with @visibility public.

The account of the session, written CURRENT_USER or CURRENT_USER() at an account position.

Source: https://dev.mysql.com/doc/refman/8.4/en/information-functions.html#function_current-user.

Rendering the current userdoctest
$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\Name\CurrentUser())->render($out);
    $out->pieces()[0]->text // => 'CURRENT_USER'

Properties§

public OptionalWords $parentheses = OptionalWords::Omitted

Methods§

public function __construct(public OptionalWords $parentheses = OptionalWords::Omitted)

Parameters

$parenthesesOptionalWordsWhether the optional empty parentheses are written
Calls 1
public function render(Output $out): void

Writes the keyword and the parentheses when they are written.

Parameters

$outOutput
Test cases 1
Calls 3

Test cases 8§

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

Dedicated tests 2
Other tests reaching this symbol 6

Relations§

Instantiated in 1