MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / ToRoutineName

Method ToRoutineName

pkg/sql/sem/tree/name_part.go:243–249  ·  view source on GitHub ↗

ToRoutineName converts an UnresolvedName to a RoutineName.

()

Source from the content-addressed store, hash-verified

241
242// ToRoutineName converts an UnresolvedName to a RoutineName.
243func (u *UnresolvedName) ToRoutineName() (RoutineName, error) {
244 un, err := u.ToUnresolvedObjectName(NoAnnotation)
245 if err != nil {
246 return RoutineName{}, errors.Newf("invalid function name: %s", u.String())
247 }
248 return un.ToRoutineName(), nil
249}

Callers 1

ResolveMethod · 0.45

Calls 2

StringMethod · 0.95

Tested by

no test coverage detected