Closed clojurians-org closed 7 years ago
Something like:
(keg/do-rdd rdd
[conn ... del ...]
(map #(doto del (.setString 1 %) .executeUpdate)))
I think a slightly better API could be found.
thanks. i works, i just forget to add the [] parameter list.
it's very easy to forget to add [] parameter when no parameter needed, then nothing happen.
(keg/do-rdd (range 1 10)
#_[]
(map prn))
i want to write rdd to jdbc database. so i need to do it in foreachPartition function. i seek and find the do-rdd function, it seems to be the key, but doseq is not a transducer, and the do-rdd example material is missing. i have no ideas how to use it do things like following.