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

Function disjoint

backend/plugin/parser/mysql/restore.go:265–272  ·  view source on GitHub ↗
(a []string, b map[string]bool)

Source from the content-addressed store, hash-verified

263}
264
265func disjoint(a []string, b map[string]bool) bool {
266 for _, item := range a {
267 if _, ok := b[strings.ToLower(item)]; ok {
268 return false
269 }
270 }
271 return true
272}
273
274func extractStatement(statement string, backupItem *storepb.PriorBackupDetail_Item) (string, error) {
275 if backupItem == nil {

Callers 1

hasDisjointUniqueKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected