Releases: seancorfield/honeysql
Releases Β· seancorfield/honeysql
2.2.858
- Address #377 by adding
honey.sql/map=
to convert a hash map into an equality condition (for aWHERE
clause). - Address #351 by adding a
:cache
option tohoney.sql/format
(for Clojure only, not ClojureScript). - Address #281 by adding support for
SELECT * EXCEPT ..
andSELECT * REPLACE ..
andARRAY<>
andSTRUCT<>
column types -- see SQL Clause Reference - SELECT and SQL Clause Reference - DDL respectively for more details. - Update
build-clj
to v0.6.7.
2.2.840
- Fix #375 for
:nest
statement. - Fix #374 by removing aliasing of
:is
/:is-not
-- this changes the behavior of[:is-not :col true/false]
to be correct and includeNULL
values. Using:is
/:is-not
with values that are not Boolean and notnil
will produce invalid SQL. - Update test dependencies.
- Update
build-clj
to v0.6.5.
2.1.833
2.1.832 (incomplete)
v2.1.832 extend lint checks to several column lists
2.1.829
- Fix #371 by treating the operand of
NOT
as a nested expression (so it is parenthesized unless it is a simple value). - Fix #370 by always parenthesizing the operand of
:nest
. - Address #369 by adding a big clarifying docstring to the
honey.sql.helpers
namespace pointing out that all helper functions are variadic, they are all[& args]
, some have:arglists
metadata to provide a more specific usage hint but those all omit the optional first argument (the DSL hash map). - Fix #354 by supporting
DROP COLUMN IF EXISTS
/ADD COLUMN IF NOT EXISTS
. - Update
build-clj
to v0.5.5.
2.1.818
- Fix #367 by supporting parameters in subexpressions around
IS NULL
/IS NOT NULL
tests. - Address #366 by introducing
:values-default-columns
option to control whether missing columns are treated asNULL
orDEFAULT
in:values
clauses with sequences of hash maps. - Fix #365 -- a regression from 1.x -- where subclauses for
UNION
,EXCEPT
, etc were incorrectly parenthesized. - Update
build-clj
to v0.5.0.
2.0.813
- Address #364 by recommending how to handle PostgreSQL operators that contain
@
. - Fix #363 and #362 by aligning more closely the semantics of
:inline
syntax with the:inline true
option. A side effect of this is that[:inline [:param :foo]]
will now (correctly) inline the value of the parameter:foo
whereas it previously producedPARAMS SOURCE
. In addition, inlining has been extended to vector values, so[:inline ["a" "b" "c"]]
will now produce('a', 'b', 'c')
and[:inline [:lift ["a" "b" "c"]]]
will now produce['a', 'b', 'c']
which is what people seemed to expect (the behavior was previously unspecified). - Fix #353 by correcting handling of strings used as SQL entities (such as table names); this was a regression introduced by a recent enhancement to
:create-table
. - Fix #349 by adding an optional
:quoted
argument toset-dialect!
. - Address #347 by adding example of adding a primary key to an existing table via
:add-index
. - Support
AS
aliasing inDELETE FROM
. - Switch from
readme
totest-doc-blocks
so all documentation is tested! - Clean up build/update deps.
2.0.783 (a.k.a. "2.0 Gold")
Changes since RC 5:
- Fixes #344 by no longer dropping the qualifier on columns in a
SET
clause for the:mysql
dialect only; the behavior is unchanged for all other dialects. - Fixes #340 by making the "hyphen to space" logic more general so operators containing
-
should retain the hyphen without special cases. - Documentation improvements:
:fetch
,:lift
,:limit
,:offset
,:param
,:select
; also around JSON/PostgreSQL. - Link to the HoneySQL web app in both the README and Getting Started.
- Switch to
tools.build
for running tests and JAR building etc.
2.0.0 RC 5
- Fix #338 by producing
OFFSET n ROWS
(orROW
ifn
is 1) if:fetch
is present or:sqlserver
dialect is specified; and by producingFETCH NEXT n ROWS ONLY
(orROW
isn
is 1; orFIRST
instead ofNEXT
if:offset
is not present). - Fix #337 by switching to
clojure.test
even for ClojureScript. - Address #332 by improving
:cross-join
documentation. - Address #330 by improving exception when a non-entity is encountered where an entity is expected.
- Fix
fetch
helper (it previously returned an:offset
clause). - Fix bug in unrolling nested argument to
with-columns
helper.