enumRoleFlag
enum RoleFlag: string
Public API: explicitly declared with
@visibility public.The role attributes written as a plain word, such as SUPERUSER or NOLOGIN.
The grammar reads these words as identifiers and compares them with this fixed list; the value of a case is the word as the server compares it. INHERIT is not in the list: it is a keyword with a production of its own. Source: https://www.postgresql.org/docs/17/sql-createrole.html.
$flag = \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Role\RoleFlag::NoLogin;
[$flag->option(), $flag->enabled()] // => ['canlogin', false]Cases§
case Superuser = 'superuser'case NoSuperuser = 'nosuperuser'case CreateRole = 'createrole'case NoCreateRole = 'nocreaterole'case Replication = 'replication'case NoReplication = 'noreplication'case CreateDb = 'createdb'case NoCreateDb = 'nocreatedb'case Login = 'login'case NoLogin = 'nologin'case BypassRls = 'bypassrls'case NoBypassRls = 'nobypassrls'case NoInherit = 'noinherit'Methods§
public function option(): stringAnswers the option of the server the word fills.
Returns
stringCalls 13
- class-const RoleFlag::Superuser() line 42
- class-const RoleFlag::NoSuperuser() line 42
- class-const RoleFlag::CreateRole() line 43
- class-const RoleFlag::NoCreateRole() line 43
- class-const RoleFlag::Replication() line 44
- class-const RoleFlag::NoReplication() line 44
- class-const RoleFlag::CreateDb() line 45
- class-const RoleFlag::NoCreateDb() line 45
- class-const RoleFlag::Login() line 46
- class-const RoleFlag::NoLogin() line 46
- class-const RoleFlag::BypassRls() line 47
- class-const RoleFlag::NoBypassRls() line 47
- class-const RoleFlag::NoInherit() line 48
public function enabled(): boolTells whether the word turns the attribute on.
Returns
boolCalls 1
- function-call
str_starts_withline 57
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.