(a []string, b map[string]bool)
| 218 | } |
| 219 | |
| 220 | func 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 | |
| 229 | func findDisjointUniqueKey(table *model.TableMetadata, fields []string) (string, error) { |
| 230 | columnMap := make(map[string]bool) |
no outgoing calls
no test coverage detected