final class RoleSystemId
    implements RoleOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

The role option SYSID of CREATE ROLE, which the server accepts and ignores.

The server keeps no option for it, so writing it twice is no conflict. Source: https://www.postgresql.org/docs/17/sql-createrole.html.

Reading the ignored identifierdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE ROLE joe SYSID 100');
    [$operation->statement->options[0]->identifier->digits, $operation->statement->options[0]->option()] // => ['100', null]

Properties§

public IntegerConstant $identifier

Methods§

public function __construct(public IntegerConstant $identifier)

Parameters

$identifierIntegerConstantThe identifier as written
public function option(): ?string

Answers null: the server keeps no option for SYSID.

Returns

?string
Test cases 1
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Calls 1

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 1