(engine storepb.Engine, functionName string, function *storepb.FunctionMetadata)
| 105 | } |
| 106 | |
| 107 | func GetFunctionDefinition(engine storepb.Engine, functionName string, function *storepb.FunctionMetadata) (string, error) { |
| 108 | f, ok := getFunctionDefinitions[engine] |
| 109 | if !ok { |
| 110 | return "", errors.Errorf("engine %s is not supported", engine) |
| 111 | } |
| 112 | return f(functionName, function) |
| 113 | } |
| 114 | |
| 115 | func RegisterGetProcedureDefinition(engine storepb.Engine, f getProcedureDefinition) { |
| 116 | mux.Lock() |
no test coverage detected