diff --git a/doc/differences-from-1-x.md b/doc/differences-from-1-x.md index e380668..677a242 100644 --- a/doc/differences-from-1-x.md +++ b/doc/differences-from-1-x.md @@ -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. diff --git a/src/honey/sql.cljc b/src/honey/sql.cljc index 50c65f0..73fb85c 100644 --- a/src/honey/sql.cljc +++ b/src/honey/sql.cljc @@ -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])