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

Function keyForParamTypes

server/functions/framework/overloads.go:63–72  ·  view source on GitHub ↗

keyForParamTypes returns a string key to match an overload with the given parameter types.

(types []*pgtypes.DoltgresType)

Source from the content-addressed store, hash-verified

61
62// keyForParamTypes returns a string key to match an overload with the given parameter types.
63func keyForParamTypes(types []*pgtypes.DoltgresType) string {
64 sb := strings.Builder{}
65 for i, typ := range types {
66 if i > 0 {
67 sb.WriteByte(',')
68 }
69 sb.WriteString(typ.String())
70 }
71 return sb.String()
72}
73
74// overloadsForParams returns all overloads matching the number of params given, without regard for types.
75func (o *Overloads) overloadsForParams(numParams int) []Overload {

Callers 2

AddMethod · 0.85
ExactMatchForTypesMethod · 0.85

Calls 2

WriteStringMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected