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

Function convertV1BoundingBox

backend/api/v1/database_converter.go:845–855  ·  view source on GitHub ↗
(bbox *v1pb.BoundingBox)

Source from the content-addressed store, hash-verified

843}
844
845func convertV1BoundingBox(bbox *v1pb.BoundingBox) *storepb.BoundingBox {
846 if bbox == nil {
847 return nil
848 }
849 return &storepb.BoundingBox{
850 Xmin: bbox.Xmin,
851 Ymin: bbox.Ymin,
852 Xmax: bbox.Xmax,
853 Ymax: bbox.Ymax,
854 }
855}
856
857func convertStoreStorageConfig(storage *storepb.StorageConfig) *v1pb.StorageConfig {
858 if storage == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected