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

Function disjoint

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

Source from the content-addressed store, hash-verified

218}
219
220func disjoint(a []string, b map[string]bool) bool {
221 for _, item := range a {
222 if _, ok := b[item]; ok {
223 return false
224 }
225 }
226 return true
227}
228
229func findDisjointUniqueKey(table *model.TableMetadata, fields []string) (string, error) {
230 columnMap := make(map[string]bool)

Callers 1

findDisjointUniqueKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected