packages/sql-semantics-postgres/src/Statement/Name/ObjectReference.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\PostgreSql\Statement\Name;
6
7use SqlSemantics\Platform\PostgreSql\Statement\Clause;
8
9/**
10 * A reference to a catalog object in a command that addresses objects by kind.
11 *
12 * DROP, COMMENT, SECURITY LABEL, ALTER ... RENAME/OWNER/SET SCHEMA, GRANT and
13 * ALTER EXTENSION name their objects with a dotted name, a routine signature,
14 * an operator signature or a more specific form. The object kind is held next
15 * to the reference by the command, as PostgreSQL's parse nodes do.
16 *
17 * @visibility public
18 * @example Telling that a dotted name refers to an object
19 *     $name = new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('t')]);
20 *     $name instanceof \SqlSemantics\Platform\PostgreSql\Statement\Name\ObjectReference // => true
21 */
22interface ObjectReference extends Clause
23{
24}
25