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

Lowers the authentication clauses of CREATE USER and ALTER USER (8.0+).

Rule: MYSQL-ACCOUNT-IDENTIFICATION-001. Scope: identification, identified_by_password, identified_by_random_password, identified_with_plugin, identified_with_plugin_as_auth, identified_with_plugin_by_password, identified_with_plugin_by_random_password, opt_create_user_with_mfa, opt_initial_auth, opt_replace_password, opt_retain_current_password, opt_discard_old_password, factor. Each clause is one LEX_MFA: the plugin and what is given to it. Passwords and authentication strings keep their exact values. Constructs: Identification. Terminates: unit productions over strict subtrees. Source: https://dev.mysql.com/doc/refman/8.4/en/create-user.html#create-user-authentication. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function identification(Node $identification): Identification

Lowers an identification or one of the identified_* rules.

Parameters

$identificationNode

Throws

ImplementationGap When the production has no rule
Called from 9
Calls 8
public function initial(Node $initial): Identification

Lowers the INITIAL AUTHENTICATION clause of a passwordless account.

Parameters

$initialNode

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 4
public function discard(Node $discard): bool

Lowers an opt_discard_old_password.

Parameters

$discardNode

Returns

bool

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 2

Private surface 2§

Implementation details, listed for orientation only.

private const FORWARD = ['identification: identified_by_password' => true, 'identification: identified_…
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 4
Method calls 17
Type declarations 2