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

Function GetDatabaseMetadata

backend/plugin/schema/schema.go:226–232  ·  view source on GitHub ↗
(engine storepb.Engine, schemaText string)

Source from the content-addressed store, hash-verified

224}
225
226func GetDatabaseMetadata(engine storepb.Engine, schemaText string) (*storepb.DatabaseSchemaMetadata, error) {
227 f, ok := getDatabaseMetadataMap[engine]
228 if !ok {
229 return nil, errors.Errorf("engine %s is not supported", engine)
230 }
231 return f(schemaText)
232}
233
234func RegisterGenerateMigration(engine storepb.Engine, f generateMigration) {
235 mux.Lock()

Callers 2

getTargetDBMetadataMethod · 0.92

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80

Tested by 1