ReportResult writes the query result to the response.
(queryIndex int, qc *query.AQLQueryContext)
| 346 | |
| 347 | // ReportResult writes the query result to the response. |
| 348 | func (w *JSONQueryResponseWriter) ReportResult(queryIndex int, qc *query.AQLQueryContext) { |
| 349 | qc.Postprocess() |
| 350 | if qc.Error != nil { |
| 351 | w.ReportError(queryIndex, qc.Query.Table, qc.Error, http.StatusInternalServerError) |
| 352 | } |
| 353 | w.response.Results[queryIndex] = qc.Results |
| 354 | } |
| 355 | |
| 356 | // Respond writes the final response into ResponseWriter. |
| 357 | func (w *JSONQueryResponseWriter) Respond(rw http.ResponseWriter) { |
nothing calls this directly
no test coverage detected