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

REVOKE [IF EXISTS] ALL [PRIVILEGES], GRANT OPTION FROM accounts [IGNORE UNKNOWN USER]: a request to revoke every privilege at every level.

Mirrors SQLCOM_REVOKE_ALL. Rule: MYSQL-REVOKE-ALL-001. The statement names no level and no object, so it has no relation fact; it revokes the privileges and role grants of the accounts, not the accounts. PRIVILEGES is an optional word. Source: https://dev.mysql.com/doc/refman/8.4/en/revoke.html. Status: Implemented.

Revoking everythingdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('REVOKE ALL PRIVILEGES, GRANT OPTION FROM u')->toString() // => 'REVOKE ALL, GRANT OPTION FROM u'

Properties§

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

Methods§

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

Parameters

$ifExistsboolWhether IF EXISTS is written
$userslist<UserSpecification>The accounts; at least one
$ignoreUnknownUserboolWhether IGNORE UNKNOWN USER is written
Calls 3
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement names no object.

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
Type declarations 1