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

Method DisplayString

core/id/id_wrappers.go:333–342  ·  view source on GitHub ↗

DisplayString returns the function ID as a suitable display name. For example, the output will generally look like: "func_name(param1, param2)"

()

Source from the content-addressed store, hash-verified

331// DisplayString returns the function ID as a suitable display name.
332// For example, the output will generally look like: "func_name(param1, param2)"
333func (id Function) DisplayString() string {
334 if !id.IsValid() {
335 return ""
336 }
337 params := make([]string, id.ParameterCount())
338 for i, paramID := range id.Parameters() {
339 params[i] = paramID.TypeName()
340 }
341 return fmt.Sprintf("%s(%s)", id.FunctionName(), strings.Join(params, ", "))
342}
343
344// FunctionName returns the function's name.
345func (id Function) FunctionName() string {

Callers 1

RowIterMethod · 0.95

Calls 5

IsValidMethod · 0.95
ParameterCountMethod · 0.95
ParametersMethod · 0.95
FunctionNameMethod · 0.95
TypeNameMethod · 0.80

Tested by

no test coverage detected