classGrantProxy
final class GrantProxy
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.GRANT PROXY ON account TO account, … [WITH GRANT OPTION]: a request to let accounts act as a proxy for another.
Mirrors the TYPE_ENUM_PROXY path of SQLCOM_GRANT. Rule: MYSQL-GRANT-PROXY-001. No relation is named. MySQL 5.x writes the account list of GRANT here, with an optional IDENTIFIED clause per account. Source: https://dev.mysql.com/doc/refman/8.4/en/grant.html#grant-proxy-privileges, https://dev.mysql.com/doc/refman/8.4/en/proxy-users.html. Status: Implemented.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze("grant proxy on 'root' to app with grant option")->toString() // => 'GRANT PROXY ON root TO app WITH GRANT OPTION'Properties§
public list<UserSpecification> $granteespublic Account $proxiedpublic bool $withGrantOption = falseMethods§
public function __construct(
public Account $proxied,
list<UserSpecification> $grantees,
public bool $withGrantOption = false,
)Parameters
$proxied | Account | The proxied account |
$grantees | list<UserSpecification> | The proxy accounts; at least one |
$withGrantOption | bool | Whether WITH GRANT OPTION is written |
Calls 3
- static-call Check::listOf() line 44
- class-const UserSpecification::class() line 44
- static-call Check::input() line 46
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 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
GrantProxyTestcalls