()
| 954 | } |
| 955 | |
| 956 | func (t *TableMetadata) GetPrimaryKey() *IndexMetadata { |
| 957 | for _, index := range t.internalIndexes { |
| 958 | if index.proto.Primary { |
| 959 | return index |
| 960 | } |
| 961 | } |
| 962 | return nil |
| 963 | } |
| 964 | |
| 965 | func (t *TableMetadata) GetProto() *storepb.TableMetadata { |
| 966 | return t.proto |
no outgoing calls
no test coverage detected