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

The kinds of object privileges are granted on; the value of a case is its keywords.

Mirrors the ObjectType of GrantStmt. A relation is written with the optional word TABLE and covers tables, views, materialized views and foreign tables; for compatibility it also accepts a sequence. Source: https://www.postgresql.org/docs/17/sql-grant.html.

Reading how the server names a kind in its messagesdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Target\PrivilegeObjectKind::ForeignDataWrapper->subject() // => 'foreign-data wrapper'

Cases§

case Relation = 'TABLE'
case Sequence = 'SEQUENCE'
case Database = 'DATABASE'
case Domain = 'DOMAIN'
case Function = 'FUNCTION'
case Procedure = 'PROCEDURE'
case Routine = 'ROUTINE'
case Language = 'LANGUAGE'
case LargeObject = 'LARGE OBJECT'
case Parameter = 'PARAMETER'
case Schema = 'SCHEMA'
case Tablespace = 'TABLESPACE'
case Type = 'TYPE'
case ForeignDataWrapper = 'FOREIGN DATA WRAPPER'
case ForeignServer = 'FOREIGN SERVER'

Methods§

public function subject(): string

Answers the words the server names the kind with in a message.

Returns

string
Called from 1
Calls 3

Test cases 20§

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 19

Relations§

Method calls 1
Constant reads 47
Type declarations 16