pretty print doc

This commit is contained in:
pt 2020-02-25 00:27:30 -05:00
parent 9584f8026a
commit 60ace348b8
2 changed files with 8 additions and 3 deletions

View File

@ -45,4 +45,9 @@ Walk Issues
* canceled orders * canceled orders
* changed orders * changed orders
* short ships * short ships
* exchange rates * exchange rates
Things to Demo
* product swap out
* pivot re-org
* don't use filters

View File

@ -6,7 +6,7 @@ SELECT
,ol.doc->>'stamp' stamp ,ol.doc->>'stamp' stamp
,ol.doc->>'tag' tag ,ol.doc->>'tag' tag
,ol.doc->>'message' "comment" ,ol.doc->>'message' "comment"
,ol.doc ,jsonb_pretty(ol.doc) doc
,ol.id ,ol.id
,to_char(round(sum(value_usd),2),'$999,999,999D00') sales ,to_char(round(sum(value_usd),2),'$999,999,999D00') sales
from from
@ -22,7 +22,7 @@ group BY
,ol.doc->>'stamp' ,ol.doc->>'stamp'
,ol.doc->>'tag' ,ol.doc->>'tag'
,ol.doc->>'comment' ,ol.doc->>'comment'
,ol.doc ,jsonb_pretty(ol.doc)
,ol.id ,ol.id
) )
SELECT SELECT