final class GrantOptionRight
    implements WithOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

WITH GRANT OPTION of GRANT: the grantees may grant the privileges they receive at that level to others.

Source: https://dev.mysql.com/doc/refman/8.4/en/grant.html#grant-privileges.

Reading the option of a grantdoctest
$grant = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('GRANT SELECT ON *.* TO u WITH GRANT OPTION')->statement;
    $grant->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Account\Privilege\GrantOptionRight // => true

Methods§

public function render(Output $out): void

Writes GRANT OPTION.

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 2