From bfc8ad6821ee3bfc0cc4b9f0db02c39057d46db1 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 3 Mar 2023 15:57:05 -0800 Subject: [PATCH] prep for 2.4.1002 --- CHANGELOG.md | 2 +- README.md | 2 +- build.clj | 2 +- doc/differences-from-1-x.md | 4 ++-- doc/getting-started.md | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44a35d4..9a3bf67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changes -* 2.4.next in progress +* 2.4.1002 -- 2023-03-03 * Address [#474](https://github.com/seancorfield/honeysql/issues/474) by adding dot-selection special syntax. * Improve docstrings for PostgreSQL operators via PR [#473](https://github.com/seancorfield/honeysql/pull/473) [@holyjak](https://github.com/holyjak). * Address [#471](https://github.com/seancorfield/honeysql/issues/471) by supporting interspersed SQL keywords in function calls. diff --git a/README.md b/README.md index c82888d..83988a4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ SQL as Clojure data structures. Build queries programmatically -- even at runtim ## Build -[![Clojars Project](https://clojars.org/com.github.seancorfield/honeysql/latest-version.svg)](https://clojars.org/com.github.seancorfield/honeysql) [![cljdoc badge](https://cljdoc.org/badge/com.github.seancorfield/honeysql?2.4.980)](https://cljdoc.org/d/com.github.seancorfield/honeysql/CURRENT) +[![Clojars Project](https://clojars.org/com.github.seancorfield/honeysql/latest-version.svg)](https://clojars.org/com.github.seancorfield/honeysql) [![cljdoc badge](https://cljdoc.org/badge/com.github.seancorfield/honeysql?2.4.1002)](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. diff --git a/build.clj b/build.clj index e35f84b..7f5ef31 100644 --- a/build.clj +++ b/build.clj @@ -21,7 +21,7 @@ (def lib 'com.github.seancorfield/honeysql) (defn- the-version [patch] (format "2.4.%s" patch)) (def version (the-version (b/git-count-revs nil))) -(def snapshot (the-version "999-SNAPSHOT")) +(def snapshot (the-version "9999-SNAPSHOT")) (def class-dir "target/classes") (defn- run-task [aliases] diff --git a/doc/differences-from-1-x.md b/doc/differences-from-1-x.md index dee0832..a9e29df 100644 --- a/doc/differences-from-1-x.md +++ b/doc/differences-from-1-x.md @@ -63,7 +63,7 @@ Supported Clojure versions: 1.7 and later. In `deps.edn`: ```clojure -com.github.seancorfield/honeysql {:mvn/version "2.4.980"} +com.github.seancorfield/honeysql {:mvn/version "2.4.1002"} ``` Required as: @@ -98,7 +98,7 @@ The primary API is just `honey.sql/format`. The `array`, `call`, `inline`, `para Other `honeysql.core` functions that no longer exist include: `build`, `qualify`, and `quote-identifier`. Many other public functions were essentially undocumented (neither mentioned in the README nor in the tests) and also no longer exist. -> As of 2.4.next, the functionality of `qualify` can be achieved through the `:.` dot-selection special syntax. +> As of 2.4.1002, the functionality of `qualify` can be achieved through the `:.` dot-selection special syntax. You can now select a non-ANSI dialect of SQL using the new `honey.sql/set-dialect!` function (which sets a default dialect for all `format` operations) or by passing the new `:dialect` option to the `format` function. `:ansi` is the default dialect (which will mostly incorporate PostgreSQL usage over time). Other dialects supported are `:mysql` (which has a different quoting strategy and uses a different ranking for the `:set` clause), `:oracle` (which is essentially the `:ansi` dialect but will control other things over time), and `:sqlserver` (which is essentially the `:ansi` dialect but with a different quoting strategy). Other dialects and changes may be added over time. diff --git a/doc/getting-started.md b/doc/getting-started.md index 93819e6..8b65e11 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -10,14 +10,14 @@ For the Clojure CLI, add the following dependency to your `deps.edn` file: ```clojure - com.github.seancorfield/honeysql {:mvn/version "2.4.980"} + com.github.seancorfield/honeysql {:mvn/version "2.4.1002"} ``` For Leiningen, add the following dependency to your `project.clj` file: ```clojure - [com.github.seancorfield/honeysql "2.4.980"] + [com.github.seancorfield/honeysql "2.4.1002"] ``` HoneySQL produces SQL statements but does not execute them. @@ -112,7 +112,7 @@ Some "functions" are considered to be operators. In general, > Note: you can use the `:numbered true` option to `format` to produce SQL containing numbered placeholders, like `FOO(a, $1, $2)`, instead of positional placeholders (`?`). -As of 2.4.next, function calls with "named" arguments are supported +As of 2.4.1002, function calls with "named" arguments are supported which some databases support, e.g., MySQL and PostgreSQL both have `SUBSTRING()`: