final class LargeObjectsTarget
    implements PrivilegeTarget
    uses Snapshot
Public API: explicitly declared with @visibility public.

Large objects named by their identifiers as the objects of a GRANT or REVOKE.

The grammar accepts any signed number; the server reads each as an object identifier when the statement runs, and the statement reports a number that is no object identifier (PG-LARGE-OBJECT-OID-001). Source: https://www.postgresql.org/docs/17/sql-grant.html.

Reading the identifier of a large objectdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('GRANT SELECT ON LARGE OBJECT 16385 TO joe');
    $operation->statement->target->identifiers[0]->magnitude->digits // => '16385'

Properties§

public non-empty-list<SignedNumber> $identifiers

Methods§

public function __construct(list<SignedNumber> $identifiers)

Parameters

$identifierslist<SignedNumber>The identifiers in the order written, at least one
Calls 2
public function object(): PrivilegeObjectKind

Answers the kind of the objects: large objects.

Test cases 1
Calls 1
public function deriveTarget(Derivation $derivation, array $privileges): void

Reports the numbers the server cannot read as object identifiers.

Parameters

$derivationDerivation
$privilegesarray
Calls 2
public function render(Output $out): void

Writes the kind and the identifiers.

Parameters

$outOutput
Calls 1

Test cases 5§

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

Dedicated tests 2
Other tests reaching this symbol 3

Relations§

Instantiated in 1