honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
ben.mumford 2018-12-12T13:39:38.002800Z

hi everyone, how do i get honey to resolve the ? everywhere?

(sql/format {:select [:a :b: :c]
             :from [:foo]
             :where [:= :f.a "baz"]})
=> ["SELECT a, b, c FROM foo WHERE f.a = ?" "baz"]
=> Would like ["SELECT a, b, c FROM foo WHERE f.a =\ "baz\""]

ben.mumford 2018-12-12T13:46:40.003200Z

basically how do i get it to resolve the prepared statements

seancorfield 2018-12-12T16:16:05.004700Z

The whole point of HoneySQL is to generate input for clojure.java.jdbc which uses prepared statements.

seancorfield 2018-12-12T16:17:17.005500Z

HoneySQL itself knows nothing about JDBC @ben.mumford620