(accounts ...string)
| 103 | } |
| 104 | |
| 105 | func (q *Query) Like(accounts ...string) *Query { |
| 106 | query := "account like ?" |
| 107 | for range accounts[1:] { |
| 108 | query += " or account like ?" |
| 109 | } |
| 110 | |
| 111 | args := make([]interface{}, len(accounts)) |
| 112 | for i, a := range accounts { |
| 113 | args[i] = a |
| 114 | } |
| 115 | q.context = q.context.Where(query, args...) |
| 116 | return q |
| 117 | } |
| 118 | |
| 119 | func (q *Query) NotLike(account string) *Query { |
| 120 | q.context = q.context.Where("account not like ?", account) |
no test coverage detected