partial #513 by dissoc'ing common metadata
This commit is contained in:
parent
18fcddfc34
commit
7d05220cfa
3 changed files with 15 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
* 2.5.next in progress
|
||||||
|
* Review metadata -> SQL logic?
|
||||||
|
* Review quoting logic?
|
||||||
|
|
||||||
* 2.5.1091 -- 2023-10-28
|
* 2.5.1091 -- 2023-10-28
|
||||||
* Address [#512](https://github.com/seancorfield/honeysql/issues/512) by adding support for subqueries in the `:array` special syntax (for BigQuery and PostgreSQL). This also adds support for metadata on the `:select` value to produce `AS STRUCT` or `DISTINCT`.
|
* Address [#512](https://github.com/seancorfield/honeysql/issues/512) by adding support for subqueries in the `:array` special syntax (for BigQuery and PostgreSQL). This also adds support for metadata on the `:select` value to produce `AS STRUCT` or `DISTINCT`.
|
||||||
* Address [#511](https://github.com/seancorfield/honeysql/issues/511) by adding support for BigQuery `CREATE OR REPLACE`.
|
* Address [#511](https://github.com/seancorfield/honeysql/issues/511) by adding support for BigQuery `CREATE OR REPLACE`.
|
||||||
|
|
|
||||||
|
|
@ -675,9 +675,10 @@
|
||||||
(conj acc k)
|
(conj acc k)
|
||||||
(conj acc k v)))
|
(conj acc k v)))
|
||||||
[]
|
[]
|
||||||
(apply dissoc data [:line :column]))]
|
(dissoc data ; remove the somewhat "standard" metadata:
|
||||||
|
:line :column :file
|
||||||
|
:end-line :end-column))]
|
||||||
(when (seq items)
|
(when (seq items)
|
||||||
(println "items" items)
|
|
||||||
(str/join " " (mapv sql-kw items))))))
|
(str/join " " (mapv sql-kw items))))))
|
||||||
|
|
||||||
(comment
|
(comment
|
||||||
|
|
|
||||||
|
|
@ -1165,3 +1165,11 @@
|
||||||
:generic-helper-variadic :generic-helper-unary))
|
:generic-helper-variadic :generic-helper-unary))
|
||||||
(c/set (conj (map keyword (keys (ns-publics *ns*)))
|
(c/set (conj (map keyword (keys (ns-publics *ns*)))
|
||||||
:nest :raw))))))
|
:nest :raw))))))
|
||||||
|
|
||||||
|
(comment
|
||||||
|
(require '[honey.sql :refer [format]])
|
||||||
|
(-> (delete-from :table)
|
||||||
|
(where [:in (composite :first :second)
|
||||||
|
[(composite 1 2) (composite 2 1)]])
|
||||||
|
(format))
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue