Back
formatv (clj)
(source)macro
(formatv syms sql & opts)
Experimental implementation of https://github.com/seancorfield/honeysql/issues/495
Treats the specified vector of symbols as variables to be substituted
in the symbolic SQL expression.
(let [x 42 y 13]
(formatv [x] '{select * from table where (= x y)}))
=> SELECT * FROM table WHERE (42 = y)