MCPcopy Create free account
hub / github.com/bytebase/bytebase / GetMaterializedViewDefinition

Function GetMaterializedViewDefinition

backend/plugin/schema/schema.go:141–147  ·  view source on GitHub ↗
(engine storepb.Engine, viewName string, view *storepb.MaterializedViewMetadata)

Source from the content-addressed store, hash-verified

139}
140
141func GetMaterializedViewDefinition(engine storepb.Engine, viewName string, view *storepb.MaterializedViewMetadata) (string, error) {
142 f, ok := getMaterializedViewDefinitions[engine]
143 if !ok {
144 return "", errors.Errorf("engine %s is not supported", engine)
145 }
146 return f(viewName, view)
147}
148
149func RegisterGetViewDefinition(engine storepb.Engine, f getViewDefinition) {
150 mux.Lock()

Callers 1

GetSchemaStringMethod · 0.92

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected