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

Function convertPlanConfigCreateDatabaseConfig

backend/api/v1/plan_service.go:1178–1189  ·  view source on GitHub ↗
(c *v1pb.Plan_CreateDatabaseConfig)

Source from the content-addressed store, hash-verified

1176}
1177
1178func convertPlanConfigCreateDatabaseConfig(c *v1pb.Plan_CreateDatabaseConfig) *storepb.PlanConfig_CreateDatabaseConfig {
1179 return &storepb.PlanConfig_CreateDatabaseConfig{
1180 Target: c.Target,
1181 Database: c.Database,
1182 Table: c.Table,
1183 CharacterSet: c.CharacterSet,
1184 Collation: c.Collation,
1185 Cluster: c.Cluster,
1186 Owner: c.Owner,
1187 Environment: c.Environment,
1188 }
1189}
1190
1191func convertPlanSpecChangeDatabaseConfig(config *v1pb.Plan_Spec_ChangeDatabaseConfig) *storepb.PlanConfig_Spec_ChangeDatabaseConfig {
1192 c := config.ChangeDatabaseConfig

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected