(replicateIgnoreDb []*DataSource, dbName, tbName string)
| 79 | } |
| 80 | |
| 81 | func IgnoreTbByReplicateIgnoreDb(replicateIgnoreDb []*DataSource, dbName, tbName string) bool { |
| 82 | for _, ignoreDb := range replicateIgnoreDb { |
| 83 | if ignoreDb.TableSchema == dbName { |
| 84 | for _, ignoreTb := range ignoreDb.Tables { |
| 85 | if ignoreTb.TableName == tbName { |
| 86 | return true |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | return false |
| 92 | } |
| 93 | |
| 94 | type Table struct { |
| 95 | TableName string |
no outgoing calls
no test coverage detected