Commit Graph

13 Commits

Author SHA1 Message Date
Daniel Nichter
f583ec6113 Update pqd so it works, sends actual new data struct. 2013-06-06 13:37:16 -05:00
Daniel Nichter
95474b1669 Implement new JSON data struct in pqd. 2013-05-22 19:40:33 -07:00
Daniel Nichter
c99cb3ba58 Add copy_paste attrib to each query's hash in the JSON output with SHOW TABLE STATUS, SHOW CREATE TABLE, and non-SELECT converted to SELECT for EXPLAIN. Fix typo: EA type is 'string' not 'str'. Add host, port, and ip type hints to pqd. 2013-05-20 16:44:44 -07:00
Daniel Nichter
41a4634edb Update JSONReportFormatter: report all str attribs; don't print "# No events processed" since that's not valid JSON; rename output.t to json.t. 2013-05-20 14:47:01 -07:00
Brian Fraser
91052e7198 Make some internal values show up nicer in --output json 2013-03-05 02:50:13 -03:00
Brian Fraser fraserb@gmail.com
809164becd Change the Report modules to use Lmo 2013-02-01 14:06:13 -03:00
Brian Fraser
5fd8042e35 Updated JSONReportFormatter to drop the hard dependency on JSON.xs and use Transformers::encode_json if JSON is not available 2013-01-30 17:56:19 -03:00
Brian Fraser
98f490492c Change JSONReportFormatter to handle versions of JSON.pm that don't add a newline at the end of the encoded json 2013-01-30 17:47:41 -03:00
Brian Fraser fraserb@gmail.com
d1bdd4d80c Make pqd --output json have flags to enable sorted keys and prettyfied JSON 2013-01-24 12:00:48 -03:00
Brian Fraser fraserb@gmail.com
41f440518f Fixed the precisions for numbers in the json output 2013-01-17 19:40:58 -03:00
Brian Fraser
1f7e1c12e2 lib/JSONReportFormatter.pm: Change the json output struct to the new spec 2013-01-16 16:46:40 -03:00
Brian Fraser fraserb@gmail.com
e8a8ebbcac Changed the JSON output 2013-01-16 07:59:19 -03:00
Brian Fraser fraserb@gmail.com
3c63750c9b Added JSONReportFormatter, a subclass of QueryReportFormatter that does what it says on the tin. WIP as it does not report profile or prepared statement data yet 2013-01-14 13:20:35 -03:00