Fork me on GitHub

Does there exist any pair of functions to move from next.jdbc connectable's to maps (and vice versa) correctly in all cases? e.g in transactions and so on. I'm thinking about being able to work with functions defined against next.jdbc in a project where the entire codebase uses the old db spec format.


it is complicated because connectables to connection spec maps is kind of a bidirectional many to many relationship. accepts many different formats of connection spec maps


at work we have a setup with a connection pool that results in a connection map that is just {:datasource ....} so to pass that to next.jdbc we just (:datasource ...)


but we don't mix and match in one transaction