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

Function convertV1SpatialIndexConfig

backend/api/v1/database_converter.go:783–793  ·  view source on GitHub ↗
(spatial *v1pb.SpatialIndexConfig)

Source from the content-addressed store, hash-verified

781}
782
783func convertV1SpatialIndexConfig(spatial *v1pb.SpatialIndexConfig) *storepb.SpatialIndexConfig {
784 if spatial == nil {
785 return nil
786 }
787 return &storepb.SpatialIndexConfig{
788 Method: spatial.Method,
789 Tessellation: convertV1TessellationConfig(spatial.Tessellation),
790 Storage: convertV1StorageConfig(spatial.Storage),
791 Dimensional: convertV1DimensionalConfig(spatial.Dimensional),
792 }
793}
794
795func convertStoreTessellationConfig(tessellation *storepb.TessellationConfig) *v1pb.TessellationConfig {
796 if tessellation == nil {

Callers 1

convertV1IndexMetadataFunction · 0.85

Calls 3

convertV1StorageConfigFunction · 0.85

Tested by

no test coverage detected