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

Function GetViewDefinition

backend/plugin/schema/schema.go:158–164  ·  view source on GitHub ↗
(engine storepb.Engine, viewName string, view *storepb.ViewMetadata)

Source from the content-addressed store, hash-verified

156}
157
158func GetViewDefinition(engine storepb.Engine, viewName string, view *storepb.ViewMetadata) (string, error) {
159 f, ok := getViewDefinitions[engine]
160 if !ok {
161 return "", errors.Errorf("engine %s is not supported", engine)
162 }
163 return f(viewName, view)
164}
165
166func RegisterGetTableDefinition(engine storepb.Engine, f getTableDefinition) {
167 mux.Lock()

Callers 1

GetSchemaStringMethod · 0.92

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected