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

Function convertStoreSpatialIndexConfig

backend/api/v1/database_converter.go:771–781  ·  view source on GitHub ↗
(spatial *storepb.SpatialIndexConfig)

Source from the content-addressed store, hash-verified

769}
770
771func convertStoreSpatialIndexConfig(spatial *storepb.SpatialIndexConfig) *v1pb.SpatialIndexConfig {
772 if spatial == nil {
773 return nil
774 }
775 return &v1pb.SpatialIndexConfig{
776 Method: spatial.Method,
777 Tessellation: convertStoreTessellationConfig(spatial.Tessellation),
778 Storage: convertStoreStorageConfig(spatial.Storage),
779 Dimensional: convertStoreDimensionalConfig(spatial.Dimensional),
780 }
781}
782
783func convertV1SpatialIndexConfig(spatial *v1pb.SpatialIndexConfig) *storepb.SpatialIndexConfig {
784 if spatial == nil {

Callers 1

Tested by

no test coverage detected