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

Method GetFunction

core/functions/collection.go:81–86  ·  view source on GitHub ↗

GetFunction returns the function with the given ID. Returns a function with an invalid ID if it cannot be found (Function.ID.IsValid() == false).

(ctx context.Context, funcID id.Function)

Source from the content-addressed store, hash-verified

79// GetFunction returns the function with the given ID. Returns a function with an invalid ID if it cannot be found
80// (Function.ID.IsValid() == false).
81func (pgf *Collection) GetFunction(ctx context.Context, funcID id.Function) (Function, error) {
82 if f, ok := pgf.accessCache[funcID]; ok {
83 return f, nil
84 }
85 return Function{}, nil
86}
87
88// GetFunctionOverloads returns the overloads for the function matching the schema and the function name. The parameter
89// types are ignored when searching for overloads.

Callers 2

GetRootObjectMethod · 0.95
RenameRootObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected