Skip to content

Commit

Permalink
Fixes #144; prep for 1.1.613 release
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Nov 5, 2020
1 parent 3a30e22 commit 5737495
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Only accretive/fixative changes will be made from now on.

* 1.1.613 -- 2020-11-05
* Fix #144 by ensuring `camel-snake-case` is properly required before use in an uberjar context.

## Stable Builds

* 1.1.610 -- 2020-10-19
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ The next generation of `clojure.java.jdbc`: a new low-level Clojure wrapper for

The latest versions on Clojars and on cljdoc:

[![Clojars Project](https://clojars.org/seancorfield/next.jdbc/latest-version.svg)](https://clojars.org/seancorfield/next.jdbc) [![cljdoc badge](https://cljdoc.org/badge/seancorfield/next.jdbc?1.1.610)](https://cljdoc.org/d/seancorfield/next.jdbc/CURRENT)
[![Clojars Project](https://clojars.org/seancorfield/next.jdbc/latest-version.svg)](https://clojars.org/seancorfield/next.jdbc) [![cljdoc badge](https://cljdoc.org/badge/seancorfield/next.jdbc?1.1.613)](https://cljdoc.org/d/seancorfield/next.jdbc/CURRENT)

The documentation on [cljdoc.org](https://cljdoc.org/d/seancorfield/next.jdbc/CURRENT) is for the current version of `next.jdbc`:

* [Getting Started](https://cljdoc.org/d/seancorfield/next.jdbc/CURRENT/doc/getting-started)
* [Migrating from `clojure.java.jdbc`](https://cljdoc.org/d/seancorfield/next.jdbc/CURRENT/doc/migration-from-clojure-java-jdbc)
* Feedback via [issues](https://github.com/seancorfield/next-jdbc/issues) or in the [`#sql` channel on the Clojurians Slack](https://clojurians.slack.com/messages/C1Q164V29/details/) or the [`#sql` stream on the Clojurians Zulip](https://clojurians.zulipchat.com/#narrow/stream/152063-sql).

The documentation on GitHub is for **develop** since the 1.1.610 release -- [see the CHANGELOG](https://github.com/seancorfield/next-jdbc/blob/develop/CHANGELOG.md) and then read the [corresponding updated documentation](https://github.com/seancorfield/next-jdbc/tree/develop/doc) on GitHub if you want.
The documentation on GitHub is for **develop** since the 1.1.613 release -- [see the CHANGELOG](https://github.com/seancorfield/next-jdbc/blob/develop/CHANGELOG.md) and then read the [corresponding updated documentation](https://github.com/seancorfield/next-jdbc/tree/develop/doc) on GitHub if you want.

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.

Expand Down
6 changes: 3 additions & 3 deletions doc/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ It is designed to work with Clojure 1.10 or later, supports `datafy`/`nav`, and
You can add `next.jdbc` to your project with either:

```clojure
seancorfield/next.jdbc {:mvn/version "1.1.610"}
seancorfield/next.jdbc {:mvn/version "1.1.613"}
```
for `deps.edn` or:

```clojure
[seancorfield/next.jdbc "1.1.610"]
[seancorfield/next.jdbc "1.1.613"]
```
for `project.clj` or `build.boot`.

Expand All @@ -31,7 +31,7 @@ For the examples in this documentation, we will use a local H2 database on disk,
```clojure
;; deps.edn
{:deps {org.clojure/clojure {:mvn/version "1.10.1"}
seancorfield/next.jdbc {:mvn/version "1.1.610"}
seancorfield/next.jdbc {:mvn/version "1.1.613"}
com.h2database/h2 {:mvn/version "1.4.199"}}}
```

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>seancorfield</groupId>
<artifactId>next.jdbc</artifactId>
<version>1.1.610</version>
<version>1.1.613</version>
<name>next.jdbc</name>
<description>The next generation of clojure.java.jdbc: a new low-level Clojure wrapper for JDBC-based access to databases.</description>
<url>https://github.com/seancorfield/next-jdbc</url>
Expand All @@ -22,7 +22,7 @@
<url>https://github.com/seancorfield/next-jdbc</url>
<connection>scm:git:git://github.com/seancorfield/next-jdbc.git</connection>
<developerConnection>scm:git:ssh://[email protected]/seancorfield/next-jdbc.git</developerConnection>
<tag>v1.1.610</tag>
<tag>v1.1.613</tag>
</scm>
<dependencies>
<dependency>
Expand Down
26 changes: 13 additions & 13 deletions src/next/jdbc.clj
Original file line number Diff line number Diff line change
Expand Up @@ -299,23 +299,23 @@

(defmacro ^:private def-snake-kebab []
(try
(let [kebab-case (requiring-resolve 'camel-snake-kebab.core/->kebab-case)
snake-case (requiring-resolve 'camel-snake-kebab.core/->snake_case)]
`(do
(def snake-kebab-opts
"A hash map of options that will convert Clojure identifiers to
(require 'camel-snake-kebab.core)
`(let [kebab-case# (requiring-resolve 'camel-snake-kebab.core/->kebab-case)
snake-case# (requiring-resolve 'camel-snake-kebab.core/->snake_case)]
(def snake-kebab-opts
"A hash map of options that will convert Clojure identifiers to
snake_case SQL entities (`:table-fn`, `:column-fn`), and will convert
SQL entities to qualified kebab-case Clojure identifiers (`:builder-fn`)."
{:column-fn ~snake-case :table-fn ~snake-case
:label-fn ~kebab-case :qualifier-fn ~kebab-case
:builder-fn (resolve 'next.jdbc.result-set/as-kebab-maps)})
(def unqualified-snake-kebab-opts
"A hash map of options that will convert Clojure identifiers to
{:column-fn snake-case# :table-fn snake-case#
:label-fn kebab-case# :qualifier-fn kebab-case#
:builder-fn (resolve 'next.jdbc.result-set/as-kebab-maps)})
(def unqualified-snake-kebab-opts
"A hash map of options that will convert Clojure identifiers to
snake_case SQL entities (`:table-fn`, `:column-fn`), and will convert
SQL entities to unqualified kebab-case Clojure identifiers (`:builder-fn`)."
{:column-fn ~snake-case :table-fn ~snake-case
:label-fn ~kebab-case :qualifier-fn ~kebab-case
:builder-fn (resolve 'next.jdbc.result-set/as-unqualified-kebab-maps)})))
{:column-fn snake-case# :table-fn snake-case#
:label-fn kebab-case# :qualifier-fn kebab-case#
:builder-fn (resolve 'next.jdbc.result-set/as-unqualified-kebab-maps)}))
(catch Throwable _)))

(def-snake-kebab)

0 comments on commit 5737495

Please sign in to comment.