(index *storepb.IndexMetadata)
| 293 | } |
| 294 | |
| 295 | func convertStoreIndexMetadata(index *storepb.IndexMetadata) *v1pb.IndexMetadata { |
| 296 | return &v1pb.IndexMetadata{ |
| 297 | Name: index.Name, |
| 298 | Expressions: index.Expressions, |
| 299 | KeyLength: index.KeyLength, |
| 300 | Descending: index.Descending, |
| 301 | Type: index.Type, |
| 302 | Unique: index.Unique, |
| 303 | Primary: index.Primary, |
| 304 | Visible: index.Visible, |
| 305 | Comment: index.Comment, |
| 306 | Definition: index.Definition, |
| 307 | ParentIndexSchema: index.ParentIndexSchema, |
| 308 | ParentIndexName: index.ParentIndexName, |
| 309 | Granularity: index.Granularity, |
| 310 | IsConstraint: index.IsConstraint, |
| 311 | SpatialConfig: convertStoreSpatialIndexConfig(index.SpatialConfig), |
| 312 | OpclassNames: index.OpclassNames, |
| 313 | OpclassDefaults: index.OpclassDefaults, |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | func convertStoreTableMetadata(table *storepb.TableMetadata) *v1pb.TableMetadata { |
| 318 | t := &v1pb.TableMetadata{ |
no test coverage detected