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

Function buildIndexesMetadata

backend/store/model/database.go:869–884  ·  view source on GitHub ↗
(table *storepb.TableMetadata)

Source from the content-addressed store, hash-verified

867}
868
869func buildIndexesMetadata(table *storepb.TableMetadata) []*IndexMetadata {
870 if table == nil {
871 return nil
872 }
873
874 var result []*IndexMetadata
875
876 for _, index := range table.Indexes {
877 result = append(result, &IndexMetadata{
878 tableProto: table,
879 proto: index,
880 })
881 }
882
883 return result
884}
885
886// buildTablesMetadataRecursive builds the partition tables recursively,
887// returns the table metadata and the partition names, the length of them must be the same.

Callers 1

buildTablesMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected