This commit is contained in:
Sean Corfield 2021-06-12 18:15:41 -07:00
parent 21e59ed408
commit f508196ba3
2 changed files with 6 additions and 1 deletions

View file

@ -70,7 +70,7 @@ Supported Clojure versions: 1.9 and later.
## API Changes
The primary API is just `honey.sql/format`. The `array`, `call`, `inline`, `param`, and `raw` functions have all become standard syntax in the DSL as functions (and their tagged literal equivalents have also gone away because they are no longer needed).
The primary API is just `honey.sql/format`. The `array`, `call`, `inline`, `param`, and `raw` functions have all become standard syntax in the DSL as functions (and their tagged literal equivalents have also gone away because they are no longer needed). _[As of 2.0.next, `call` has been reinstated as an undocumented function in `honey.sql` purely to aid migration from 1.x]_
Other `honeysql.core` functions that no longer exist include: `build`, `qualify`, and `quote-identifier`. Many other public functions were essentially undocumented (neither mentioned in the README nor in the tests) and also no longer exist.

View file

@ -1352,6 +1352,11 @@
(when ignore-nil
(swap! op-ignore-nil conj op))))
;; aids to migration from HoneySQL 1.x -- these are deliberately undocumented
;; so as not to encourage their use for folks starting fresh with 2.x!
(defn ^:no-doc call [f & args] (apply vector f args))
(comment
(format {:truncate :foo})
(format-expr [:= :id 1])