classRoleValidity
final class RoleValidity
implements RoleOption
uses Snapshot
Public API: explicitly declared with
@visibility public.The role option VALID UNTIL: the time after which the password of the role is no longer valid.
The time is written as a string that the server reads as a timestamp with the settings of the session when the statement runs. Source: https://www.postgresql.org/docs/17/sql-createrole.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("CREATE ROLE joe VALID UNTIL 'infinity'");
$operation->statement->options[0]->until->value // => 'infinity'Properties§
public StringConstant $untilMethods§
public function __construct(public StringConstant $until)Parameters
$until | StringConstant | The time as written |
public function option(): stringpublic function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.