MCPcopy Create free account
hub / github.com/dolthub/doltgresql / UnresolvedObjectName

Struct UnresolvedObjectName

postgres/parser/sem/tree/object_name.go:114–129  ·  view source on GitHub ↗

UnresolvedObjectName is an unresolved qualified name for a database object (table, view, etc). It is like UnresolvedName but more restrictive. It should only be constructed via NewUnresolvedObjectName.

Source from the content-addressed store, hash-verified

112// (table, view, etc). It is like UnresolvedName but more restrictive.
113// It should only be constructed via NewUnresolvedObjectName.
114type UnresolvedObjectName struct {
115 // NumParts indicates the number of name parts specified; always 1 or greater.
116 NumParts int
117
118 // Parts are the name components, in reverse order.
119 // There are at most 3: object name, schema, catalog/db.
120 //
121 // Note: Parts has a fixed size so that we avoid a heap allocation for the
122 // slice every time we construct an UnresolvedObjectName. It does imply
123 // however that Parts does not have a meaningful "length"; its actual length
124 // (the number of parts specified) is populated in NumParts above.
125 Parts [3]string
126
127 // UnresolvedObjectName can be annotated with a *tree.TableName.
128 AnnotatedNode
129}
130
131// UnresolvedObjectName implements TableExpr.
132func (*UnresolvedObjectName) tableExpr() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected