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.
| 112 | // (table, view, etc). It is like UnresolvedName but more restrictive. |
| 113 | // It should only be constructed via NewUnresolvedObjectName. |
| 114 | type 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. |
| 132 | func (*UnresolvedObjectName) tableExpr() {} |
nothing calls this directly
no outgoing calls
no test coverage detected