final class RevokeProxy
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

REVOKE [IF EXISTS] PROXY ON account FROM account, … [IGNORE UNKNOWN USER]: a request to withdraw a proxy grant.

Rule: MYSQL-REVOKE-PROXY-001. No relation is named. Source: https://dev.mysql.com/doc/refman/8.4/en/revoke.html. Status: Implemented.

Revoking a proxydoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('REVOKE PROXY ON root FROM app')->toString() // => 'REVOKE PROXY ON root FROM app'

Properties§

public list<UserSpecification> $users
public bool $ifExists
public Account $proxied
public bool $ignoreUnknownUser = false

Methods§

public function __construct(
    public bool $ifExists,
    public Account $proxied,
    list<UserSpecification> $users,
    public bool $ignoreUnknownUser = false,
)

Parameters

$ifExistsboolWhether IF EXISTS is written
$proxiedAccountThe proxied account
$userslist<UserSpecification>The proxy accounts; at least one
$ignoreUnknownUserboolWhether IGNORE UNKNOWN USER 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