classLargeObjectsTarget
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.
$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> $identifiersMethods§
public function __construct(list<SignedNumber> $identifiers)Parameters
$identifiers | list<SignedNumber> | The identifiers in the order written, at least one |
Calls 2
- static-call Check::listOf() line 41
- class-const SignedNumber::class() line 41
public function object(): PrivilegeObjectKindAnswers the kind of the objects: large objects.
Returns
Test cases 1
Calls 1
- class-const PrivilegeObjectKind::LargeObject() line 49
public function deriveTarget(Derivation $derivation, array $privileges): voidReports the numbers the server cannot read as object identifiers.
Parameters
$derivation | Derivation | |
$privileges | array |
Calls 2
- method-call ObjectIdentifiers::check() line 57
- new ObjectIdentifiers line 57
public function render(Output $out): voidWrites the kind and the identifiers.
Parameters
$out | Output |
Calls 1
- method-call Output::keyword() line 65
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.