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

The role option INHERIT: the role inherits the privileges of the roles it is a member of.

INHERIT is a keyword, so the grammar gives it a production of its own instead of reading it as one of the plain attribute words; NOINHERIT is such a word (RoleAttribute). Source: https://www.postgresql.org/docs/17/sql-createrole.html.

Reading the option INHERIT fillsdoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Role\RoleInherit())->option() // => 'inherit'

Methods§

public function option(): string

Answers the option INHERIT fills.

Returns

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

Writes the keyword.

Parameters

$outOutput
Calls 1

Test cases 3§

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 2

Relations§

Instantiated in 1