enum AccountOptionKind
Public API: explicitly declared with @visibility public.

The password management and account locking options of CREATE USER and ALTER USER.

Mirrors the fields of the server's LEX_ALTER (alter_password): account locking, password expiry, password history, password reuse interval, current-password verification, and failed-login tracking. A case that takes a number is written with it: PASSWORD EXPIRE INTERVAL n DAY, PASSWORD HISTORY n, PASSWORD REUSE INTERVAL n DAY, FAILED_LOGIN_ATTEMPTS n, PASSWORD_LOCK_TIME n. Source: https://dev.mysql.com/doc/refman/8.4/en/create-user.html#create-user-password-management, https://dev.mysql.com/doc/refman/8.4/en/create-user.html#create-user-account-locking.

Reading the words of an optiondoctest
\SqlSemantics\Platform\MySql\Statement\Account\Option\AccountOptionKind::ReuseInterval->words() // => ['PASSWORD', 'REUSE', 'INTERVAL']

Cases§

case AccountUnlock
case AccountLock
case ExpireNow
case ExpireInterval
case ExpireNever
case ExpireDefault
case HistoryCount
case HistoryDefault
case ReuseInterval
case ReuseDefault
case RequireCurrent
case RequireCurrentDefault
case RequireCurrentOptional
case FailedLoginAttempts
case LockTime
case LockTimeUnbounded

Methods§

public function unit(): ?string

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3

Relations§

Method calls 3
Constant reads 23
Type declarations 1