Skip to content

Releases: seancorfield/honeysql

2.1.833

03 Dec 21:24
Compare
Choose a tag to compare
  • Fix #372 by merging :select-distinct-on differently.
  • Add empty column list check for SELECT and several other clauses, when :checking :basic (or :strict) is provided.
  • Update build-clj to v0.6.0.

2.1.832 (incomplete)

03 Dec 21:20
Compare
Choose a tag to compare
2.1.832 (incomplete) Pre-release
Pre-release
v2.1.832

extend lint checks to several column lists

2.1.829

28 Nov 00:03
Compare
Choose a tag to compare
  • 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

04 Oct 23:10
Compare
Choose a tag to compare
  • 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 as NULL or DEFAULT 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

26 Sep 00:59
Compare
Choose a tag to compare
  • 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 produced PARAMS 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 to set-dialect!.
  • Address #347 by adding example of adding a primary key to an existing table via :add-index.
  • Support AS aliasing in DELETE FROM.
  • Switch from readme to test-doc-blocks so all documentation is tested!
  • Clean up build/update deps.

2.0.783 (a.k.a. "2.0 Gold")

15 Aug 18:28
Compare
Choose a tag to compare

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

18 Jul 01:01
Compare
Choose a tag to compare
2.0.0 RC 5 Pre-release
Pre-release
  • Fix #338 by producing OFFSET n ROWS (or ROW if n is 1) if :fetch is present or :sqlserver dialect is specified; and by producing FETCH NEXT n ROWS ONLY (or ROW is n is 1; or FIRST instead of NEXT 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

17 Jul 21:27
Compare
Choose a tag to compare
2.0.0 RC 4 Pre-release
Pre-release
  • Fix #338 by adding ONLY to :fetch. This is not correctly fixed
  • Fix #337 by switching to clojure.test even for ClojureScript.
  • Address #330 by improving exception when a non-entity is encountered where an entity is expected.
  • Fix bug in unrolling nested argument to with-columns helper.

2.0.0 RC 3

17 Jun 06:02
Compare
Choose a tag to compare
2.0.0 RC 3 Pre-release
Pre-release
  • 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

11 May 05:59
Compare
Choose a tag to compare
2.0.0 RC 2 Pre-release
Pre-release
  • 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 to format.
  • Update test-runner.