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

Function GenerateMigration

backend/plugin/schema/schema.go:243–249  ·  view source on GitHub ↗
(engine storepb.Engine, diff *MetadataDiff)

Source from the content-addressed store, hash-verified

241}
242
243func GenerateMigration(engine storepb.Engine, diff *MetadataDiff) (string, error) {
244 f, ok := generateMigrations[engine]
245 if !ok {
246 return "", errors.Errorf("engine %s is not supported", engine)
247 }
248 return f(diff)
249}
250
251func RegisterGetSDLDiff(engine storepb.Engine, f getSDLDiff) {
252 mux.Lock()

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80