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.

Granting a proxydoctest
(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> $grantees
public Account $proxied
public bool $withGrantOption = false

Methods§

public function __construct(
    public Account $proxied,
    list<UserSpecification> $grantees,
    public bool $withGrantOption = false,
)

Parameters

$proxiedAccountThe proxied account
$granteeslist<UserSpecification>The proxy accounts; at least one
$withGrantOptionboolWhether WITH GRANT OPTION is written
Calls 3
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement names no relation and no expression.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

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 2