(querySQL, countSQL string, conds []string)
| 14 | } |
| 15 | |
| 16 | func buildSQLWithConds(querySQL, countSQL string, conds []string) (newQuerySQL, newCountSQL string) { |
| 17 | whereSQL := "" |
| 18 | if len(conds) > 0 { |
| 19 | whereSQL = " WHERE " + strings.Join(conds, " AND ") |
| 20 | } |
| 21 | return querySQL + whereSQL, countSQL + whereSQL |
| 22 | } |
no outgoing calls
no test coverage detected