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

Method Equal

backend/generated-go/store/database_equal.pb.go:1575–1595  ·  view source on GitHub ↗
(y *ObjectSchema)

Source from the content-addressed store, hash-verified

1573}
1574
1575func (x *ObjectSchema) Equal(y *ObjectSchema) bool {
1576 if x == y {
1577 return true
1578 }
1579 if x == nil || y == nil {
1580 return x == nil && y == nil
1581 }
1582 if x.Type != y.Type {
1583 return false
1584 }
1585 if !x.GetStructKind().Equal(y.GetStructKind()) {
1586 return false
1587 }
1588 if !x.GetArrayKind().Equal(y.GetArrayKind()) {
1589 return false
1590 }
1591 if x.SemanticType != y.SemanticType {
1592 return false
1593 }
1594 return true
1595}

Callers

nothing calls this directly

Calls 3

GetStructKindMethod · 0.95
GetArrayKindMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected