conman
conman copied to clipboard
a helper library for managing database connections
Is there some built-in functionality that already does that? I added the following code to my ns: ``` (defmacro rebind-connection [] (cons 'do (->> (io/file (io/resource "sql")) (file-seq) (filter #(.isFile...
I think it would be nice to have a function that creates a connection only if there are no connections at the moment, something like connect-if-not-connected or ensure-connected
It would be _really_ nice if a function could be provided to `conman/bind-connection` that would wrap database-touching functions. Something like ``` clojure (conman/bind-connection *db* {:wrapper-func log-it} "sql/queries.sql") ``` where a...