1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-6109: EXPLAIN JSON

- Add first testcases
- Don't overquote when printing conditions
- Other small output fixes
This commit is contained in:
Sergei Petrunia
2014-08-09 06:37:56 +04:00
parent 83f0ddc629
commit 33d53c4c24
8 changed files with 100 additions and 20 deletions

View File

@ -1,5 +1,11 @@
/* Todo: SkySQL copyrights */
/*
A class to write well-formed JSON documents. The documents are also formatted
for human readability.
*/
class Json_writer
{
public:
@ -25,7 +31,7 @@ public:
first_child(true)
{}
private:
// stack of (name, bool is_object_or_array) elements.
// TODO: a stack of (name, bool is_object_or_array) elements.
int indent_level;
enum { INDENT_SIZE = 2 };