This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-01
Channels
- # announcements (10)
- # aws (1)
- # babashka (19)
- # beginners (104)
- # calva (50)
- # cider (17)
- # cljs-dev (135)
- # cljsrn (56)
- # clojure (240)
- # clojure-dev (4)
- # clojure-europe (19)
- # clojure-nl (2)
- # clojure-uk (7)
- # clojurescript (22)
- # conjure (2)
- # css (1)
- # cursive (10)
- # data-science (1)
- # datomic (60)
- # emacs (2)
- # events (2)
- # exercism (1)
- # figwheel-main (3)
- # fulcro (13)
- # graalvm (5)
- # gratitude (1)
- # inf-clojure (4)
- # introduce-yourself (5)
- # jobs-discuss (21)
- # lsp (36)
- # malli (6)
- # meander (8)
- # missionary (12)
- # off-topic (14)
- # pathom (13)
- # pedestal (10)
- # polylith (42)
- # re-frame (5)
- # reagent (12)
- # reitit (3)
- # releases (8)
- # sci (10)
- # shadow-cljs (37)
- # sql (5)
- # tools-deps (6)
Hi all, how to concat jsonb in sqlingvo?
Ex:
UPDATE table
SET json_field = json_field || new_json_data;
This in sqlingvo?Any one?
@kishorekaranam99 Not many folks around at that time of night. No idea about sqlingvo but that operator is built-in to #honeysql
dev=> (-> {:update :table :set {:json_field [:|| :json_field :new_json_data]}}
#_=> (sql/format))
["UPDATE table SET json_field = json_field || new_json_data"]
dev=> (-> (h/update :table)
#_=> (h/set {:json_field [:|| :json_field :new_json_data]})
#_=> (sql/format))
["UPDATE table SET json_field = json_field || new_json_data"]