summaryrefslogtreecommitdiff
path: root/sql/my_json_writer.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2014-08-09 06:37:56 +0400
committerSergei Petrunia <psergey@askmonty.org>2014-08-09 06:37:56 +0400
commit33d53c4c24881d4906cacc791c2049faa96a0ee6 (patch)
tree18bf6a1bd9527509543d40b12fd4c2018b914258 /sql/my_json_writer.h
parent83f0ddc6294ea8d4e424a540a043bf88ee4a8c8d (diff)
downloadmariadb-git-33d53c4c24881d4906cacc791c2049faa96a0ee6.tar.gz
MDEV-6109: EXPLAIN JSON
- Add first testcases - Don't overquote when printing conditions - Other small output fixes
Diffstat (limited to 'sql/my_json_writer.h')
-rw-r--r--sql/my_json_writer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/my_json_writer.h b/sql/my_json_writer.h
index 403d7e0688c..101df7c3215 100644
--- a/sql/my_json_writer.h
+++ b/sql/my_json_writer.h
@@ -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 };