classAccountRules
final class AccountRules
The entry rules of the account family: the methods other families and the statement dispatcher call.
Rule: MYSQL-ACCOUNT-ENTRY-001. Scope: users, roles, privileges, passwords and resource groups. A statement node is handed to the rule of its nonterminal: GRANT and REVOKE by generation (MYSQL-ACCOUNT-GRANT-001, MYSQL-ACCOUNT-GRANT-LEGACY-001), the user statements (MYSQL-ACCOUNT-USER-001), the role statements (MYSQL-ACCOUNT-ROLE-001) and the resource group statements (MYSQL-ACCOUNT-RESOURCE-GROUP-001); SET PASSWORD comes from the SET rules (MYSQL-ACCOUNT-PASSWORD-001). Terminates: each method delegates once to a rule over a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/account-management-statements.html. Status: Implemented.
Properties§
public Lowering $loweringMethods§
public function __construct(public Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers an account management statement: a node of one of the statement rules this family owns.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 16
- method-call Lowering::form() line 51
- class-const AccountRules::LEGACY() line 52
- new LegacyGrantRule line 53
- method-call LegacyGrantRule::grant() line 55
- method-call LegacyGrantRule::revoke() line 55
- method-call GrantRule::grant() line 59
- new GrantRule line 59
- method-call GrantRule::revoke() line 60
- method-call UserStatementRule::alter() line 61
- new UserStatementRule line 61
- method-call UserStatementRule::drop() line 62
- method-call RoleRule::statement() line 63
- new RoleRule line 63
- method-call ResourceGroupRule::statement() line 64
- new ResourceGroupRule line 64
- static-call ImplementationGap::production() line 65
Lowers a production of create, alter or drop that MYSQL-DEFINITION-ROUTES-001 routes to this
family.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 2
- method-call UserStatementRule::definition() line 77
- new UserStatementRule line 77
Lowers RENAME USER: a node of rename_list.
Parameters
$list | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalls 2
- method-call UserStatementRule::rename() line 87
- new UserStatementRule line 87
Lowers SET PASSWORD: a production of start_option_value_list or option_value_no_option_type
whose first symbol is PASSWORD.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call PasswordRule::statement() line 98
- new PasswordRule line 98
Lowers the password operand of a MySQL 5.x SET list item: a node of text_or_password (5.6) or password (5.7).
Parameters
$password | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call PasswordRule::password() line 108
- new PasswordRule line 108
Private surface 1§
Implementation details, listed for orientation only.
private const LEGACY = ['grant: GRANT clear_privileges grant_command' => true, 'revoke: REVOKE clear_p…Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
AccountRulesTestcalls