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)
| 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). |
| 81 | func (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. |
no outgoing calls
no test coverage detected