final class LegacyGrantRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

Lowers GRANT and REVOKE of MySQL 5.6 and 5.7.

Rule: MYSQL-ACCOUNT-GRANT-LEGACY-001. Scope: grant, revoke (5.x productions), grant_command, revoke_command. The statements are the same structures as the 8.0 ones; GRANT also carries the account clauses of 5.x (IDENTIFIED per account, REQUIRE, resource limits in WITH), and 5.6 REVOKE reads its accounts with the GRANT account list. The marker clear_privileges holds no operand. Constructs: GrantPrivileges, GrantProxy, RevokePrivileges, RevokeAll, RevokeProxy. Terminates: every child is a strict subtree. Source: https://dev.mysql.com/doc/refman/5.7/en/grant.html, https://dev.mysql.com/doc/refman/5.7/en/revoke.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to

Private surface 2§

Implementation details, listed for orientation only.

private const KINDS = ['grant_command: grant_privileges ON opt_table grant_ident TO_SYM grant_list re…
private Lowering $lowering

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 1
Method calls 2