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

Function gridLevelsEqual

backend/plugin/schema/differ.go:961–974  ·  view source on GitHub ↗

gridLevelsEqual checks if two grid level lists are equal.

(grids1, grids2 []*storepb.GridLevel)

Source from the content-addressed store, hash-verified

959
960// gridLevelsEqual checks if two grid level lists are equal.
961func gridLevelsEqual(grids1, grids2 []*storepb.GridLevel) bool {
962 if len(grids1) != len(grids2) {
963 return false
964 }
965
966 for i, grid1 := range grids1 {
967 grid2 := grids2[i]
968 if grid1.Level != grid2.Level || grid1.Density != grid2.Density {
969 return false
970 }
971 }
972
973 return true
974}
975
976// storageConfigsEqual checks if two storage configurations are equal.
977func storageConfigsEqual(cfg1, cfg2 *storepb.StorageConfig) bool {

Callers 1

tessellationConfigsEqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected