FQName returns the fully qualified name.
()
| 253 | |
| 254 | // FQName returns the fully qualified name. |
| 255 | func (u UserDefinedTypeName) FQName() string { |
| 256 | var sb strings.Builder |
| 257 | // Note that cross-database type references are disabled, so we only |
| 258 | // format the qualified name with the schema. |
| 259 | if u.ExplicitSchema { |
| 260 | sb.WriteString(u.Schema) |
| 261 | sb.WriteString(".") |
| 262 | } |
| 263 | sb.WriteString(u.Name) |
| 264 | return sb.String() |
| 265 | } |
| 266 | |
| 267 | // Convenience list of pre-constructed types. Caller code can use any of these |
| 268 | // types, or use the MakeXXX methods to construct a custom type that is not |
no test coverage detected