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

Function GetSchemaDefinition

backend/plugin/schema/schema.go:192–198  ·  view source on GitHub ↗
(engine storepb.Engine, schema *storepb.SchemaMetadata)

Source from the content-addressed store, hash-verified

190}
191
192func GetSchemaDefinition(engine storepb.Engine, schema *storepb.SchemaMetadata) (string, error) {
193 f, ok := getSchemaDefinitions[engine]
194 if !ok {
195 return "", errors.Errorf("engine %s is not supported", engine)
196 }
197 return f(schema)
198}
199
200func RegisterGetDatabaseDefinition(engine storepb.Engine, f getDatabaseDefinition) {
201 mux.Lock()

Callers 1

GetSchemaStringMethod · 0.92

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected