keyForParamTypes returns a string key to match an overload with the given parameter types.
(types []*pgtypes.DoltgresType)
| 61 | |
| 62 | // keyForParamTypes returns a string key to match an overload with the given parameter types. |
| 63 | func 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. |
| 75 | func (o *Overloads) overloadsForParams(numParams int) []Overload { |
no test coverage detected