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

Function storePlanConfigHasCreateDatabase

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

Source from the content-addressed store, hash-verified

796}
797
798func storePlanConfigHasCreateDatabase(plan *storepb.PlanConfig) bool {
799 for _, spec := range plan.GetSpecs() {
800 if _, ok := spec.Config.(*storepb.PlanConfig_Spec_CreateDatabaseConfig); ok {
801 return true
802 }
803 }
804 return false
805}
806
807// Converters section - ordered with callers before callees.
808

Callers 1

UpdatePlanMethod · 0.85

Calls 1

GetSpecsMethod · 0.45

Tested by

no test coverage detected