This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-12
Channels
- # adventofcode (135)
- # announcements (1)
- # beginners (192)
- # boot (5)
- # calva (130)
- # cider (42)
- # cljdoc (4)
- # cljs-dev (6)
- # cljsrn (3)
- # clojure (222)
- # clojure-europe (2)
- # clojure-greece (5)
- # clojure-italy (24)
- # clojure-nl (23)
- # clojure-russia (1)
- # clojure-spec (6)
- # clojure-uk (67)
- # clojurescript (35)
- # cursive (39)
- # datomic (61)
- # emacs (17)
- # figwheel (3)
- # figwheel-main (2)
- # fulcro (12)
- # hyperfiddle (10)
- # juxt (3)
- # leiningen (10)
- # nrepl (35)
- # off-topic (34)
- # onyx (3)
- # pathom (6)
- # quil (5)
- # re-frame (29)
- # reitit (6)
- # ring (1)
- # ring-swagger (8)
- # shadow-cljs (37)
- # spacemacs (9)
- # sql (9)
- # tools-deps (24)
- # unrepl (1)
- # vim (1)
hi all, does anyone know if clojure.java.jdbc can return an array type for an h2 database? i'm having some trouble when i run a query and i expect to get an array type for a column, but am getting a clob (here's the question fleshed out in more detail: https://stackoverflow.com/questions/53745570/doing-a-jdbc-query-on-a-h2-view-with-array-agg-returns-a-clob-type-not-an-array)
You'll probably have to extend one of the protocols to do the conversion.
hi sean, just to check: i was going to follow this stack overflow post but is this what you had in mind by extending the protocol? https://stackoverflow.com/questions/19103870/jsonify-a-jdbc4array-in-clojure
Something like that, yeah.
In next.jdbc
, this will be a lot easier. Partly because you'll be able to specify protocol extensions on the fly for specific columns. Which will require Clojure 1.10.
(and it will also have built-in datafy
/`nav` support)