MCPcopy Index your code
hub / github.com/bytebase/bytebase / GetPrimaryKey

Method GetPrimaryKey

backend/store/model/database.go:956–963  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

954}
955
956func (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
965func (t *TableMetadata) GetProto() *storepb.TableMetadata {
966 return t.proto

Callers 5

doGenerateFunction · 0.80
findDisjointUniqueKeyFunction · 0.80
doGenerateFunction · 0.80
validateFinalStateMethod · 0.80
createTableLikeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected