Added Postgres specific || operator for concatenating two jsonb values#458
Added Postgres specific || operator for concatenating two jsonb values#458mputz86 wants to merge 1 commit intohaskell-beam:masterfrom
Conversation
kmicklas
left a comment
There was a problem hiding this comment.
Thanks! It's definitely nice to support as many operators as we can.
into a new json value.
|
Also got some conflict with the |
|
Ah good point, I totally forgot that |
|
Then for me the question is "where" to put it in code:
Sry, too much discussion for such a small thing? :D |
|
I don't think it matters much but probably nice to keep the order in line with the Postgres docs where possible. |
I am not sure if the operator naming is correct and if it is ok to introduce these PostgreSQL specific operators like this (not so much experienced in Haskell yet). But anyway, I try my luck and hope at least to get feedback on how to do it correctly :D.
Here is the official description of the
||jsonb-concatenator operator as well as some more https://www.postgresql.org/docs/11/functions-json.html (maybe I can add some more ;) ).Thank you.