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

Method ExactMatchForTypes

server/functions/framework/overloads.go:161–165  ·  view source on GitHub ↗

ExactMatchForTypes returns the function that exactly matches the given parameter types, or nil if no overload with those types exists.

(types ...*pgtypes.DoltgresType)

Source from the content-addressed store, hash-verified

159// ExactMatchForTypes returns the function that exactly matches the given parameter types, or nil if no overload with
160// those types exists.
161func (o *Overloads) ExactMatchForTypes(types ...*pgtypes.DoltgresType) (FunctionInterface, bool) {
162 key := keyForParamTypes(types)
163 fn, ok := o.ByParamType[key]
164 return fn, ok
165}
166
167// Overload is a single overload of a given function, used during evaluation to match the arguments provided
168// to a particular overload.

Callers 2

resolveMethod · 0.80
resolveOperatorMethod · 0.80

Calls 1

keyForParamTypesFunction · 0.85

Tested by

no test coverage detected