(query string, whereArgs []interface{})
| 149 | } |
| 150 | |
| 151 | func toQuery(query string, whereArgs []interface{}) string { |
| 152 | var res string |
| 153 | queryParts := strings.Split(query, "?") |
| 154 | for idx, s := range queryParts { |
| 155 | res += s |
| 156 | if idx == len(whereArgs) { |
| 157 | break |
| 158 | } |
| 159 | res += whereArgs[idx].(string) |
| 160 | } |
| 161 | return res |
| 162 | } |
| 163 | |
| 164 | func (a *Api) storeCache( |
| 165 | clientQuery, |
no outgoing calls
no test coverage detected