enum MembershipSetting: string
Public API: explicitly declared with @visibility public.

The value of a role membership option: OPTION, TRUE or FALSE.

OPTION is the older spelling of TRUE, as in WITH ADMIN OPTION; each spelling is kept as written. Source: https://www.postgresql.org/docs/17/sql-grant.html.

Telling that OPTION turns the membership option ondoctest
\SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Privilege\MembershipSetting::Option->enabled() // => true

Cases§

case Option = 'OPTION'
case True = 'TRUE'
case False = 'FALSE'

Methods§

public function enabled(): bool

Tells whether the value turns the option on.

Returns

bool
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§

Constant reads 3
Type declarations 1