prep for 2.4.1006
This commit is contained in:
parent
e8753efa3e
commit
ece9be3a4b
5 changed files with 11 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
* 2.4.next in progress
|
* 2.4.1006 -- 2023-03-17
|
||||||
* Fix [#478](https://github.com/seancorfield/honeysql/issues/478) by handling `:do-update-set` correctly in the `upsert` helper and by handling parameters correctly in the `:do-update-set` formatter.
|
* Fix [#478](https://github.com/seancorfield/honeysql/issues/478) by handling `:do-update-set` correctly in the `upsert` helper and by handling parameters correctly in the `:do-update-set` formatter.
|
||||||
* Fix [#476](https://github.com/seancorfield/honeysql/issues/476) by adding support for multiple arguments to `:raw`, essentially restoring 1.x functionality (while still allowing for embedded vectors as expressions, introduced in 2.x).
|
* Fix [#476](https://github.com/seancorfield/honeysql/issues/476) by adding support for multiple arguments to `:raw`, essentially restoring 1.x functionality (while still allowing for embedded vectors as expressions, introduced in 2.x).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ SQL as Clojure data structures. Build queries programmatically -- even at runtim
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
[](https://clojars.org/com.github.seancorfield/honeysql) [](https://cljdoc.org/d/com.github.seancorfield/honeysql/CURRENT)
|
[](https://clojars.org/com.github.seancorfield/honeysql) [](https://cljdoc.org/d/com.github.seancorfield/honeysql/CURRENT)
|
||||||
|
|
||||||
This project follows the version scheme MAJOR.MINOR.COMMITS where MAJOR and MINOR provide some relative indication of the size of the change, but do not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names). COMMITS is an ever-increasing counter of commits since the beginning of this repository.
|
This project follows the version scheme MAJOR.MINOR.COMMITS where MAJOR and MINOR provide some relative indication of the size of the change, but do not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names). COMMITS is an ever-increasing counter of commits since the beginning of this repository.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ Supported Clojure versions: 1.7 and later.
|
||||||
In `deps.edn`:
|
In `deps.edn`:
|
||||||
<!-- :test-doc-blocks/skip -->
|
<!-- :test-doc-blocks/skip -->
|
||||||
```clojure
|
```clojure
|
||||||
com.github.seancorfield/honeysql {:mvn/version "2.4.1002"}
|
com.github.seancorfield/honeysql {:mvn/version "2.4.1006"}
|
||||||
```
|
```
|
||||||
|
|
||||||
Required as:
|
Required as:
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,14 @@ For the Clojure CLI, add the following dependency to your `deps.edn` file:
|
||||||
|
|
||||||
<!-- :test-doc-blocks/skip -->
|
<!-- :test-doc-blocks/skip -->
|
||||||
```clojure
|
```clojure
|
||||||
com.github.seancorfield/honeysql {:mvn/version "2.4.1002"}
|
com.github.seancorfield/honeysql {:mvn/version "2.4.1006"}
|
||||||
```
|
```
|
||||||
|
|
||||||
For Leiningen, add the following dependency to your `project.clj` file:
|
For Leiningen, add the following dependency to your `project.clj` file:
|
||||||
|
|
||||||
<!-- :test-doc-blocks/skip -->
|
<!-- :test-doc-blocks/skip -->
|
||||||
```clojure
|
```clojure
|
||||||
[com.github.seancorfield/honeysql "2.4.1002"]
|
[com.github.seancorfield/honeysql "2.4.1006"]
|
||||||
```
|
```
|
||||||
|
|
||||||
HoneySQL produces SQL statements but does not execute them.
|
HoneySQL produces SQL statements but does not execute them.
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,12 @@ parameters from them:
|
||||||
;;=> ["SELECT a, @var := 'foo'"]
|
;;=> ["SELECT a, @var := 'foo'"]
|
||||||
(sql/format {:select [:a [[:raw ["@var := " ["foo"]]]]]})
|
(sql/format {:select [:a [[:raw ["@var := " ["foo"]]]]]})
|
||||||
;;=> ["SELECT a, @var := (?)" "foo"]
|
;;=> ["SELECT a, @var := (?)" "foo"]
|
||||||
|
;; when multiple expressions are provided, the enclosing
|
||||||
|
;; vector can be omitted:
|
||||||
|
(sql/format {:select [:a [[:raw "@var := " [:inline "foo"]]]]})
|
||||||
|
;;=> ["SELECT a, @var := 'foo'"]
|
||||||
|
(sql/format {:select [:a [[:raw "@var := " ["foo"]]]]})
|
||||||
|
;;=> ["SELECT a, @var := (?)" "foo"]
|
||||||
```
|
```
|
||||||
|
|
||||||
`:raw` is also supported as a SQL clause for the same reason.
|
`:raw` is also supported as a SQL clause for the same reason.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue