interface PrivilegeTarget
    extends Node
Public API: explicitly declared with @visibility public.

The objects of a GRANT or REVOKE: named objects of one kind, or every object of a kind in schemas.

Mirrors the targtype, objtype and objects of GrantStmt. Source: https://www.postgresql.org/docs/17/sql-grant.html.

Reading the kind of the objects of a grantdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('GRANT USAGE ON SCHEMA app TO joe');
    $operation->statement->target->object() // => \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Target\PrivilegeObjectKind::Schema

Methods§

Test cases 2§

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

Dedicated tests 2

Relations§

Implemented by 7
Method calls 4
Type declarations 3