MCPcopy Index your code
hub / github.com/bytebase/bytebase / GetFunctionDefinition

Function GetFunctionDefinition

backend/plugin/schema/schema.go:107–113  ·  view source on GitHub ↗
(engine storepb.Engine, functionName string, function *storepb.FunctionMetadata)

Source from the content-addressed store, hash-verified

105}
106
107func 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
115func RegisterGetProcedureDefinition(engine storepb.Engine, f getProcedureDefinition) {
116 mux.Lock()

Callers 1

GetSchemaStringMethod · 0.92

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected