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

Function storePlanConfigHasRelease

backend/api/v1/plan_service.go:787–796  ·  view source on GitHub ↗
(plan *storepb.PlanConfig)

Source from the content-addressed store, hash-verified

785}
786
787func storePlanConfigHasRelease(plan *storepb.PlanConfig) bool {
788 for _, spec := range plan.GetSpecs() {
789 if c, ok := spec.Config.(*storepb.PlanConfig_Spec_ChangeDatabaseConfig); ok {
790 if c.ChangeDatabaseConfig.Release != "" {
791 return true
792 }
793 }
794 }
795 return false
796}
797
798func storePlanConfigHasCreateDatabase(plan *storepb.PlanConfig) bool {
799 for _, spec := range plan.GetSpecs() {

Callers 2

UpdatePlanMethod · 0.85
RunPlanChecksMethod · 0.85

Calls 1

GetSpecsMethod · 0.45

Tested by

no test coverage detected