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

Function convertToPlanSpecExportDataConfig

backend/api/v1/plan_service.go:1114–1124  ·  view source on GitHub ↗
(projectID string, config *storepb.PlanConfig_Spec_ExportDataConfig)

Source from the content-addressed store, hash-verified

1112}
1113
1114func convertToPlanSpecExportDataConfig(projectID string, config *storepb.PlanConfig_Spec_ExportDataConfig) *v1pb.Plan_Spec_ExportDataConfig {
1115 c := config.ExportDataConfig
1116 return &v1pb.Plan_Spec_ExportDataConfig{
1117 ExportDataConfig: &v1pb.Plan_ExportDataConfig{
1118 Targets: c.Targets,
1119 Sheet: common.FormatSheet(projectID, c.SheetSha256),
1120 Format: convertExportFormat(c.Format),
1121 Password: c.Password,
1122 },
1123 }
1124}
1125
1126// planSpecsEqualSet reports whether two spec slices have the same set of
1127// specs keyed by id, with each pair byte-equal under proto.Equal. Order

Callers 1

convertToPlanSpecFunction · 0.85

Calls 2

FormatSheetFunction · 0.92
convertExportFormatFunction · 0.85

Tested by

no test coverage detected