From 191043acf33b11ae6037143190167ffdf425278b Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 18 Sep 2018 00:12:06 -0400 Subject: [PATCH] test script --- test | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 test diff --git a/test b/test new file mode 100644 index 0000000..98c83d6 --- /dev/null +++ b/test @@ -0,0 +1,40 @@ +insert into evt.bpr(bpr) + SELECT +$${ + "gl": { + "lines": [ + { + "amount": 2.19, + "account": "h.food" + }, + { + "amount": -2.19, + "account": "h.dcard" + } + ], + "jpath": [ + [ + "{item,0}", + "{header}" + ], + [ + "{item,0}", + "{header}" + ] + ] + }, + "item": [ + { + "item": "green olives", + "amount": 2.19, + "reason": "food", + "account": "h.food" + } + ], + "header": { + "entity": "home", + "module": "MHI", + "offset": "h.dcard", + "transaction": "purchase" + } +}$$::jsonb bpr \ No newline at end of file