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

Function convertV1DimensionalConfig

backend/api/v1/database_converter.go:913–923  ·  view source on GitHub ↗
(dimensional *v1pb.DimensionalConfig)

Source from the content-addressed store, hash-verified

911}
912
913func convertV1DimensionalConfig(dimensional *v1pb.DimensionalConfig) *storepb.DimensionalConfig {
914 if dimensional == nil {
915 return nil
916 }
917 return &storepb.DimensionalConfig{
918 Dimensions: dimensional.Dimensions,
919 DataType: dimensional.DataType,
920 // Note: OperatorClass field exists only in store proto
921 // V1 proto uses Srid and Constraints instead
922 }
923}
924
925func convertV1TableMetadata(table *v1pb.TableMetadata) *storepb.TableMetadata {
926 t := &storepb.TableMetadata{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected