MXS-2379: Fix maxinfo HTTP interface

Added the missing HTTP request handlers and a new JSON conversion
function.
This commit is contained in:
Markus Mäkelä
2019-03-28 13:19:24 +02:00
parent 0fa7ad8580
commit 116efb2409
6 changed files with 140 additions and 1 deletions

View File

@ -52,6 +52,13 @@ public:
*/
void write(DCB* dcb);
/**
* Write the result set to a DCB as JSON
*
* @param dcb DCB where the result set is written
*/
void write_as_json(DCB* dcb);
private:
std::vector<std::string> m_columns;
std::vector<std::vector<std::string>> m_rows;