This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-21
Channels
- # announcements (13)
- # babashka (29)
- # beginners (52)
- # calva (95)
- # cider (18)
- # clj-commons (7)
- # cljs-dev (42)
- # clojure (121)
- # clojure-australia (1)
- # clojure-dev (39)
- # clojure-europe (36)
- # clojure-france (4)
- # clojure-greece (1)
- # clojure-italy (20)
- # clojure-nl (3)
- # clojure-portugal (1)
- # clojure-uk (7)
- # clojurescript (47)
- # conjure (2)
- # cursive (9)
- # datalevin (5)
- # datascript (8)
- # datomic (66)
- # defnpodcast (2)
- # deps-new (5)
- # fulcro (18)
- # graalvm (21)
- # gratitude (9)
- # jobs (6)
- # jobs-discuss (17)
- # leiningen (3)
- # lsp (80)
- # lumo (1)
- # malli (9)
- # mount (2)
- # off-topic (16)
- # other-languages (8)
- # podcasts (19)
- # reitit (5)
- # remote-jobs (5)
- # shadow-cljs (29)
- # sql (5)
- # tools-deps (13)
- # vim (11)
- # xtdb (19)
@seancorfield would it be possible to make all Connectibles also Executable, in the same way as it is done for DataSource? So that any custom connectible could be used with execute as is? 🙏
Can you explain, in an issue on GH, what doesn't currently work that you would like to work? I suspect this would be problematic to solve because of connection management. Right now, if Executable
isn't implemented for a given type, the assumption is that get-datasource
can be called on it, and then DataSource
is Executable
and knows how to get a connection and close it when it is done.
execute-batch!
is a special case because it works with a PreparedStatement
and assumes that if you pass it something other than a Connection
, it can call get-connection
and close that when it is done -- but it has to use runtime type checking to do that and that is a performance hit that other functions must not have.
I will do that. Thank you