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

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 $lowering

Methods§

public function __construct(public Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function statement(Node $statement): Statement
public function definition(Form $form): Statement

Lowers a production of create, alter or drop that MYSQL-DEFINITION-ROUTES-001 routes to this family.

Parameters

$formForm

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 2
public function renameUsers(Node $list): Statement

Lowers RENAME USER: a node of rename_list.

Parameters

$listNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 2
public function setPassword(Form $form): Statement

Lowers SET PASSWORD: a production of start_option_value_list or option_value_no_option_type whose first symbol is PASSWORD.

Parameters

$formForm

Returns

Throws

ImplementationGap When the production has no rule
Calls 2
public function password(Node $password): Password

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

$passwordNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2

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

Relations§

Instantiated in 1
Method calls 2
Type declarations 1