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

Method toFuncSignature

server/types/function_registry.go:144–151  ·  view source on GitHub ↗

toFuncSignature returns a function signature for the given Internal ID.

(functionID id.Function)

Source from the content-addressed store, hash-verified

142
143// toFuncSignature returns a function signature for the given Internal ID.
144func (*functionRegistry) toFuncSignature(functionID id.Function) (string, []*DoltgresType) {
145 internalParams := functionID.Parameters()
146 params := make([]*DoltgresType, len(internalParams))
147 for i, internalParam := range internalParams {
148 params[i] = IDToBuiltInDoltgresType[internalParam]
149 }
150 return functionID.FunctionName(), params
151}
152
153// toFuncID creates a valid function string for the given name and parameters, then registers the name with the
154// global functionRegistry. The ID from the registry is returned.

Callers 1

loadFunctionMethod · 0.95

Calls 2

ParametersMethod · 0.45
FunctionNameMethod · 0.45

Tested by

no test coverage detected