Note relation between :lift and honeysql.format/value

This commit is contained in:
Sean Corfield 2021-02-14 14:00:28 -08:00
parent 67c85ba57c
commit 26741450e6
2 changed files with 3 additions and 1 deletions

View file

@ -105,7 +105,7 @@ The following new syntax has been added:
* `:default` -- for `DEFAULT` values (in inserts) and for declaring column defaults in table definitions,
* `:inline` -- used as a function to replace the `sql/inline` / `#sql/inline` machinery,
* `:interval` -- used as a function to support `INTERVAL <n> <units>`, e.g., `[:interval 30 :days]`.
* `:lift` -- used as a function to prevent interpretation of a Clojure data structure as DSL syntax (e.g., when passing a vector or hash map as a parameter value),
* `:lift` -- used as a function to prevent interpretation of a Clojure data structure as DSL syntax (e.g., when passing a vector or hash map as a parameter value) -- this should mostly be a replacement for `honeysql.format/value`,
* `:nest` -- used as a function to add an extra level of nesting (parentheses) around an expression,
* `:not` -- this is now explicit syntax,
* `:param` -- used as a function to replace the `sql/param` / `#sql/param` machinery,

View file

@ -98,6 +98,8 @@ This can be useful when dealing with JSON types:
;;=> ["WHERE json_col = ?" {:a 1 :b "two"}]
```
> Note: HoneySQL 1.x used `honeysql.format/value` for this.
## nest
Used to wrap an expression when you want an extra