classPasswordRule
final class PasswordRule
Lowers SET PASSWORD of every release.
Rule: MYSQL-ACCOUNT-PASSWORD-001. Scope: the PASSWORD productions of start_option_value_list (5.7, 8.0+) and option_value_no_option_type (5.6), which the SET rules of the utility family hand over, and text_or_password (5.6), password (5.7). The password keeps its exact value; = and := are the same request. Constructs: SetPassword, Password. Terminates: every child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/set-password.html, https://dev.mysql.com/doc/refman/5.6/en/set-password.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
public function statement(Form $form): SetPasswordLowers a SET PASSWORD production.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 13
- function-call
array_key_existsline 61 - class-const PasswordRule::FORMS() line 61
- static-call ImplementationGap::production() line 62
- method-call Form::node() line 65
- method-call PasswordRule::password() line 66
- function-call
str_ends_withline 67 - new Password line 68
- class-const PasswordFunction::Password() line 68
- new SetPassword line 71
- new IdentificationRule line 73
- function-call
countline 74 - method-call IdentificationRule::replace() line 76
- method-call IdentificationRule::retain() line 76
Lowers the password operand: a TEXT_STRING_password (8.0+), a password (5.7) or a text_or_password (5.6).
Parameters
$password | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 2
- method-call SqlSemantics\Platform\MySql\Lowering\Account\AccountRules::password() packages/sql-semantics-mysql/src/Lowering/Account/AccountRules.php:108
- method-call SqlSemantics\Platform\MySql\Lowering\Account\PasswordRule::statement() packages/sql-semantics-mysql/src/Lowering/Account/PasswordRule.php:66
Calls 7
- method-call Lowering::form() line 86
- new ClauseRule line 87
- new Password line 90
- method-call ClauseRule::string() line 91
- class-const PasswordFunction::Password() line 92
- class-const PasswordFunction::OldPassword() line 93
- static-call ImplementationGap::production() line 94
Private surface 2§
Implementation details, listed for orientation only.
private const FORMS = ['start_option_value_list: PASSWORD equal TEXT_STRING_password opt_replace_pass…private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
PasswordRuleTestcalls
Relations§
Instantiated in 2
Method calls 2
- method-call SqlSemantics\Platform\MySql\Lowering\Account\AccountRules::setPassword() packages/sql-semantics-mysql/src/Lowering/Account/AccountRules.php:98
- method-call SqlSemantics\Platform\MySql\Lowering\Account\AccountRules::password() packages/sql-semantics-mysql/src/Lowering/Account/AccountRules.php:108