I am migrating my code that currently uses clojure/java.jdbc 0.2.0 to the new 0.3.0 API.
There are a lot of newly deprecated functions in the 0.3.0 API.
I have been using "with-query-results" extensively but this is now deprecated, so what is the direct replacement function to use to get equivalent behaviour to this?
(defn get-user [username]
(jdbc/with-connection db
(jdbc/with-query-results results
["select username, password, roles from users where username = ?" username]
(cond
(empty? results)
nil
:else
(first results)))))
I know that "with-connection" is no longer needed, but after that the available documentation is very unclear to me.