MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Contain

Method Contain

IceFireDB-SQLProxy/pkg/mysql/mysql/mysql_gtid.go:373–391  ·  view source on GitHub ↗
(o GTIDSet)

Source from the content-addressed store, hash-verified

371}
372
373func (s *MysqlGTIDSet) Contain(o GTIDSet) bool {
374 sub, ok := o.(*MysqlGTIDSet)
375 if !ok {
376 return false
377 }
378
379 for key, set := range sub.Sets {
380 o, ok := s.Sets[key]
381 if !ok {
382 return false
383 }
384
385 if !o.Contain(set) {
386 return false
387 }
388 }
389
390 return true
391}
392
393func (s *MysqlGTIDSet) Equal(o GTIDSet) bool {
394 sub, ok := o.(*MysqlGTIDSet)

Callers

nothing calls this directly

Calls 1

ContainMethod · 0.65

Tested by

no test coverage detected