hugsql

jumar 2017-04-28T05:43:01.595041Z

@bostonaholic luminus handles this "automatically" if you use +postgres when generating the project - in db.core namespace it will generate the code for handling jsonb type

bostonaholic 2017-04-28T05:44:33.602377Z

thanks, but I’m not using luminus

jumar 2017-04-28T05:45:23.606462Z

You can at least inspire; or perhaps use that code to avoid doing the custom parsing for every select

bostonaholic 2017-04-28T05:46:38.612255Z

yeah, if I notice it’s a think I’ll need to do a lot, I’ll consider it. Thanks for the reference.

serioga 2017-04-28T11:15:48.434588Z

@bostonaholic you can use libraries like https://github.com/remodoy/clj-postgresql

👍 1
serioga 2017-04-28T11:17:53.452447Z

but there is json string parsing under the hood anyway https://github.com/remodoy/clj-postgresql/blob/master/src/clj_postgresql/types.clj#L228