Fork me on GitHub
#sql
<
2017-11-10
>
cddr21:11:11

Cross-posting my question here since #honeysql seems pretty quiet: How would you generate "select 1 < 2" with honeysql? I'd have expected it to be {:select [:< 1 2]} but that yields ["SELECT <, ?, ?" 1 2].

tanzoniteblack21:11:37

@cddr I don't have a repl with honeysql available, but honeysql expects a vector of columns to be returned handed to select; so try either {:select [[<: 1 2]]}, or if that doesn't work, then you might need to reach for raw`, or call helper functions

seancorfield21:11:22

I answered in #honeysql

cddr21:11:27

Cool. Thanks