This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-30
Channels
- # aws (1)
- # bangalore-clj (1)
- # beginners (73)
- # boot (13)
- # cider (3)
- # clara (19)
- # cljs-dev (33)
- # cljsrn (37)
- # clojure (177)
- # clojure-dev (13)
- # clojure-gamedev (1)
- # clojure-italy (10)
- # clojure-nlp (1)
- # clojure-russia (1)
- # clojure-spec (64)
- # clojure-uk (128)
- # clojurescript (177)
- # core-async (23)
- # cursive (5)
- # datascript (13)
- # datomic (20)
- # devops (49)
- # emacs (13)
- # graphql (5)
- # hoplon (13)
- # keechma (1)
- # leiningen (3)
- # liberator (4)
- # lumo (2)
- # off-topic (11)
- # om (19)
- # om-next (3)
- # onyx (6)
- # re-frame (13)
- # reagent (14)
- # ring-swagger (7)
- # rum (2)
- # spacemacs (7)
- # unrepl (1)
- # untangled (23)
- # vim (8)
- # yada (1)
Based on 37 responses to the survey all on 1.8.0 or later, I’m pretty comfortable moving java.jdbc
‘s minimum supported version to 1.7.0 at this point… so that’ll be 0.7.0-beta2.
@alexmiller FYI, I updated build_ci
again for that…
@seancorfield re: 2-arity reduce: It's a good question and I don't have any satisfying answers.
this is a version of the generator/function that @hiredman was mentioning https://gist.github.com/ghadishayban/902373e247e920855139902912d237f0#file-generators-clj-L35-L58 For c.java.jdbc @seancorfield , you'd use it like so:
(supply #(when (.next rs) (extract-row rs)) nil)
i will probably change the second argument into a predicate rather than a sentinel value
@seancorfield sorry for the delay, build box is updated
Thanks @alexmiller — I only just got to my desk (West Coast) so the timing is good. I’ll force a rebuild and then go ahead and publish 0.7.0-beta1 only support Clojure 1.7+
@ghadi The underlying suggestion there is “if these were in core, writing core to produce reducibles would be a lot easier” ?
Happy to get feedback on how I ended up implementing it: https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj#L968-L1035
Tests for the various reduce contract aspects are here: https://github.com/clojure/java.jdbc/blob/master/src/test/clojure/clojure/java/test_jdbc.clj#L440-L493