I'd prefer not to. They're similar, but the queries are slightly different, and 
need different query params, and the functions should have different error 
contexts so the errors are distinguishable.

It'd be complex and awkward to try to do query building, or to pass error 
contexts downward, or to execute the query and then pass the rows around 
instead of the query-rows-scan being self contained. Since it's only 15 lines 
plus the query strings, I really feel like the cost of abstraction would 
outweigh the cost of duplication here.

[ Full content available at: https://github.com/apache/trafficcontrol/pull/2862 
]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to