final class ExpireUserPasswords
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

MySQL 5.6 ALTER USER account PASSWORD EXPIRE, …: a request to mark the passwords of accounts expired.

Rule: MYSQL-ALTER-USER-EXPIRE-001. MySQL 5.6 has no other form of ALTER USER; every account is followed by PASSWORD EXPIRE. Source: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html. Status: Implemented.

Expiring two passwordsdoctest
(new \SqlSemantics\Platform\MySql\Semantics('mysql-5.6.51'))->analyze('alter user a password expire, b password expire')->toString() // => 'ALTER USER a PASSWORD EXPIRE, b PASSWORD EXPIRE'

Properties§

public list<Account> $users

Methods§

public function __construct(list<Account> $users)

Parameters

$userslist<Account>The accounts in order; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement names no relation and no expression.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 3

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