Releases: seancorfield/honeysql
Releases · seancorfield/honeysql
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.
2.0.0 RC 4
2.0.0 RC 3
- Fix #328 by adding
:distinct
as special syntax, affecting an expression. - Address #327 by changing "unknown clause" error to including mention of "nil values" (which are also illegal).
- Fix #327 by making single-argument helpers consistent with multi-argument helpers.
- Support PostgreSQL's
&&
array operator. - Clarify how to
SELECT
a function expression (in Getting Started). - Update
test-runner
.
2.0.0 RC 2
- Fix #326 by allowing
ON
/USING
to be optional and not dropping parameters on the floor. - Fix #325 by making the
%
function call syntax respect:quoted true
and/or:dialect
options, and also allowing for qualified column names. (PR from @lognush) - Add
:quoted-snake true
option to force conversion from kebab-case to snake_case when:quoted true
or a:dialect
is specified toformat
. - Update
test-runner
.