(a []string, b map[string]bool)
| 200 | } |
| 201 | |
| 202 | func disjoint(a []string, b map[string]bool) bool { |
| 203 | for _, item := range a { |
| 204 | if _, ok := b[item]; ok { |
| 205 | return false |
| 206 | } |
| 207 | } |
| 208 | return true |
| 209 | } |
| 210 | |
| 211 | func (g *generator) findDisjointUniqueKey(columns []string) ([]string, error) { |
| 212 | columnMap := make(map[string]bool) |
no outgoing calls
no test coverage detected