19std::string
renderText(
const StatementResult& result);
28std::string
renderJson(
const std::vector<StatementResult>& results);
The table definitions read from SYSTEM_TABLE: tables, their columns and positions.
std::string renderText(const StatementResult &result)
Formats one result for the console.
std::string renderTablesJson(const std::vector< TableSchema > &tables)
Builds the JSON answer of GET /api/tables: every table with its columns.
std::string renderJson(const std::vector< StatementResult > &results)
Builds the JSON answer of POST /api/sql: one object per statement that has something to show.
Running statements, and the results they produce.