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

Function GetProcedureDefinition

backend/plugin/schema/schema.go:124–130  ·  view source on GitHub ↗
(engine storepb.Engine, procedureName string, procedure *storepb.ProcedureMetadata)

Source from the content-addressed store, hash-verified

122}
123
124func GetProcedureDefinition(engine storepb.Engine, procedureName string, procedure *storepb.ProcedureMetadata) (string, error) {
125 f, ok := getProcedureDefinitions[engine]
126 if !ok {
127 return "", errors.Errorf("engine %s is not supported", engine)
128 }
129 return f(procedureName, procedure)
130}
131
132func RegisterGetMaterializedViewDefinition(engine storepb.Engine, f getMaterializedViewDefinition) {
133 mux.Lock()

Callers 1

GetSchemaStringMethod · 0.92

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected