one more readme update

This commit is contained in:
Justin Kramer 2012-08-24 18:37:03 -04:00
parent b20a8ab06d
commit a4a4d271ad

View file

@ -151,6 +151,8 @@ You can also define your own clauses:
=> ["SELECT a, b FOOBAR baz"] => ["SELECT a, b FOOBAR baz"]
(require '[honeysql.helpers :refer [defhelper]]) (require '[honeysql.helpers :refer [defhelper]])
;; Defines a helper function, and allows 'build' to recognize your clause
(defhelper foobar [m args] (defhelper foobar [m args]
(assoc m :foobar (first args))) (assoc m :foobar (first args)))