You should actually return something from the with-query-results macro. And since seq attached to results is lazy, let it consume it:
(with-connection +db-specs+ (with-query-results results [+transactions-query+] (doall results)))
This is a common pattern when using clojure.contrib.sql not bound to the Jite SQLite adapter.
Btw I've never had to do (Class/forName driver-class-str) manually, this is clearly your Java habit. The driver loads somewhere under the contrib.sql hood.
source share