honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
kwrooijen 2020-06-11T16:26:20.080800Z

Thanks! I tried next-jdbc and that seems to work.

seancorfield 2020-06-11T17:04:27.082800Z

Ah, you were using clojure.java.jdbc? Yeah, that's a bit fussy about which functions you use since they nearly all invoke different JDBC methods under the hood. next.jdbc deliberately simplifies that, so everything goes through .execute() under the hood, which means execute! is much more broadly useful (and next.jdbc.sql/query is just an alias for next.jdbc/execute! really).

kwrooijen 2020-06-11T18:13:35.084Z

Yeah I'm exploring my options with SQL (and other Clojure libs). At work we use raw jdbc and HugSQL, but I'd like to use something other than that for my personal project. I'm really impressed with HoneySQL though 🙂

kwrooijen 2020-06-11T18:14:08.084400Z

next.jdbc sounds like a good option to use from now on

seancorfield 2020-06-11T18:50:07.085300Z

HugSQL has built-in support for next.jdbc via an adapter. next.jdbc's docs also have a Quick Start guide for using it with HugSQL.