classRevokeAll
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.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('REVOKE ALL PRIVILEGES, GRANT OPTION FROM u')->toString() // => 'REVOKE ALL, GRANT OPTION FROM u'Properties§
public list<UserSpecification> $userspublic bool $ifExistspublic bool $ignoreUnknownUser = falseMethods§
public function __construct(
public bool $ifExists,
list<UserSpecification> $users,
public bool $ignoreUnknownUser = false,
)Parameters
$ifExists | bool | Whether IF EXISTS is written |
$users | list<UserSpecification> | The accounts; at least one |
$ignoreUnknownUser | bool | Whether IGNORE UNKNOWN USER is written |
Calls 3
- static-call Check::listOf() line 43
- class-const UserSpecification::class() line 43
- static-call Check::input() line 45
public function deriveStatement(Derivation $derivation): voidDerives nothing: the statement names no object.
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
RevokeAllTestcalls