classUnqualifiedName
final class UnqualifiedName
implements ObjectReference
uses Snapshot
Public API: explicitly declared with
@visibility public.The name of an object that belongs to no schema, such as a schema, an extension, a language, a database or a role.
The grammar writes these objects with a single name; no qualifier can be written. Source: https://www.postgresql.org/docs/17/sql-dropschema.html, https://www.postgresql.org/docs/17/sql-comment.html.
(new \SqlSemantics\Platform\PostgreSql\Statement\Object\Reference\UnqualifiedName(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('app')))->name->value // => 'app'Properties§
public Name $nameMethods§
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: a name holds no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
public function render(Output $out): voidWrites the name.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::name() line 49
- class-const NameUse::Column() line 49
Test cases 18§
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 16
DropRuleTest::testUnqualifiedWrapsEachNamecallsObjectFormsTest::testFormNamesEachReferencecallsRelationTargetsTest::testResolveIgnoresKindsThatNameNoRelationcallsChangeOwnerTest::testRejectsAKindWithoutOwnercallsCommentTest::testRejectsAWrongFormcallsDropTest::testRejectsConcurrentlyForAnotherKindcallsExtensionDependencyTest::testRejectsAKindWithoutDependenciescallsRenameTest::testRejectsARoleWithoutItsKeywordcallsRenameTest::testRejectsIfExistsOfAnotherKindcallsRenameTest::testRejectsRoleWordForAnotherKindcallsSecurityLabelTest::testRejectsAKindWithoutLabelscallsSetSchemaTest::testRejectsAWrongFormcallsSetSchemaTest::testRejectsIfExistsOfAnotherKindcallsConfigurationSettingTest::testAlterableIsTruecallsConfigurationSettingTest::testRenderWritesTheClausecallsConfigurationSettingTest::testSettingIsNullcalls
Relations§
Instantiated in 5
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ExtensionRule::contents() packages/sql-semantics-postgres/src/Lowering/Catalog/ExtensionRule.php:124
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\DropRule::unqualified() packages/sql-semantics-postgres/src/Lowering/Routine/DropRule.php:132
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\ObjectRule::named() packages/sql-semantics-postgres/src/Lowering/Routine/ObjectRule.php:145
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\ObjectRule::altered() packages/sql-semantics-postgres/src/Lowering/Routine/ObjectRule.php:224
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\ObjectRule::altered() packages/sql-semantics-postgres/src/Lowering/Routine/ObjectRule.php:225