prep for 1.3.909
This commit is contained in:
parent
81ebccc490
commit
b35d531705
8 changed files with 38 additions and 36 deletions
4
.github/workflows/test-and-release.yml
vendored
4
.github/workflows/test-and-release.yml
vendored
|
|
@ -12,14 +12,14 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
- name: Setup Clojure
|
||||
uses: DeLaGuardo/setup-clojure@master
|
||||
with:
|
||||
cli: '1.11.1.1413'
|
||||
cli: '1.11.1.1429'
|
||||
- name: Cache All The Things
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
|
|||
10
.github/workflows/test-and-snapshot.yml
vendored
10
.github/workflows/test-and-snapshot.yml
vendored
|
|
@ -10,14 +10,14 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
- name: Setup Clojure
|
||||
uses: DeLaGuardo/setup-clojure@master
|
||||
with:
|
||||
cli: '1.11.1.1413'
|
||||
cli: '1.11.1.1429'
|
||||
- name: Cache All The Things
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
@ -57,14 +57,14 @@ jobs:
|
|||
java: [ '11', '17', '20' ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Setup Clojure
|
||||
uses: DeLaGuardo/setup-clojure@master
|
||||
with:
|
||||
cli: '1.11.1.1413'
|
||||
cli: '1.11.1.1429'
|
||||
- name: Cache All The Things
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
@ -93,7 +93,7 @@ jobs:
|
|||
- name: Setup Clojure
|
||||
uses: DeLaGuardo/setup-clojure@master
|
||||
with:
|
||||
cli: '1.11.1.1413'
|
||||
cli: '1.11.1.1429'
|
||||
- name: Cache All The Things
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
|
|||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
|
@ -10,14 +10,14 @@ jobs:
|
|||
java: [ '11', '17', '20' ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Setup Clojure
|
||||
uses: DeLaGuardo/setup-clojure@master
|
||||
with:
|
||||
cli: '1.11.1.1413'
|
||||
cli: '1.11.1.1429'
|
||||
- name: Cache All The Things
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
- name: Setup Clojure
|
||||
uses: DeLaGuardo/setup-clojure@master
|
||||
with:
|
||||
cli: '1.11.1.1413'
|
||||
cli: '1.11.1.1429'
|
||||
- name: Cache All The Things
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -2,10 +2,11 @@
|
|||
|
||||
Only accretive/fixative changes will be made from now on.
|
||||
|
||||
* 1.3.next in progress
|
||||
* 1.3.909 -- 2023-12-16
|
||||
* Address [#267](https://github.com/seancorfield/next-jdbc/issues/267) by adding the `:schema-opts` option to override the default conventions for identifying foreign keys in columns.
|
||||
* Address [#264](https://github.com/seancorfield/next-jdbc/issues/264) by letting `insert-multi!` accept empty rows (and producing an empty result vector). This improves compatibility with `clojure.javaj.jdbc`.
|
||||
* Address [#258](https://github.com/seancorfield/next-jdbc/issues/258) by updating all the library (driver) versions in Getting Started to match the latest versions being tested (from `deps.edn`).
|
||||
* Update `java.data` to 1.1.103 so that `next.jdbc` no longer has a transitive dependency on `org.clojure/tools.logging`!
|
||||
* Attempt to clarify that when calling `reduce` on the result of `plan`, you must provide an initial value.
|
||||
* Expand examples for calling `next.jdbc.sql/find-by-keys` to show `LIKE` and `IN` clauses.
|
||||
* Update `tools.build` to 0.9.6 (and get rid of `template/pom.xml` in favor of new `:pom-data` option to `b/write-pom`).
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ The next generation of `clojure.java.jdbc`: a new low-level Clojure wrapper for
|
|||
|
||||
The latest versions on Clojars and on cljdoc:
|
||||
|
||||
[](https://clojars.org/com.github.seancorfield/next.jdbc)
|
||||
[](https://cljdoc.org/d/com.github.seancorfield/next.jdbc/CURRENT)
|
||||
[](https://clojars.org/com.github.seancorfield/next.jdbc)
|
||||
[](https://cljdoc.org/d/com.github.seancorfield/next.jdbc/CURRENT)
|
||||
[](https://clojurians.slack.com/app_redirect?channel=sql)
|
||||
[](http://clojurians.net)
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ The documentation on [cljdoc.org](https://cljdoc.org/d/com.github.seancorfield/n
|
|||
* [Migrating from `clojure.java.jdbc`](https://cljdoc.org/d/com.github.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/) 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.3.894 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. Older versions of `next.jdbc` were published under the `seancorfield` group ID and you can find [older seancorfield/next.jdbc documentation on cljdoc.org](https://cljdoc.org/versions/seancorfield/next.jdbc).
|
||||
The documentation on GitHub is for **develop** since the 1.3.909 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. Older versions of `next.jdbc` were published under the `seancorfield` group ID and you can find [older seancorfield/next.jdbc documentation on cljdoc.org](https://cljdoc.org/versions/seancorfield/next.jdbc).
|
||||
|
||||
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.
|
||||
|
||||
|
|
|
|||
37
deps.edn
37
deps.edn
|
|
@ -1,13 +1,13 @@
|
|||
{:mvn/repos {"sonatype" {:url "https://oss.sonatype.org/content/repositories/snapshots/"}}
|
||||
:paths ["src" "resources"]
|
||||
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
|
||||
org.clojure/java.data {:mvn/version "1.0.95"}
|
||||
org.clojure/java.data {:mvn/version "1.1.103"}
|
||||
|
||||
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}}
|
||||
:aliases
|
||||
{;; for help: clojure -A:deps -T:build help/doc
|
||||
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.6"}
|
||||
slipset/deps-deploy {:mvn/version "0.2.1"}}
|
||||
slipset/deps-deploy {:mvn/version "0.2.2"}}
|
||||
:ns-default build}
|
||||
|
||||
;; versions to test against:
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
io.github.cognitect-labs/test-runner
|
||||
{:git/tag "v0.5.1" :git/sha "dfb30dd"}
|
||||
;; connection pooling
|
||||
com.zaxxer/HikariCP {:mvn/version "5.0.1"}
|
||||
com.zaxxer/HikariCP {:mvn/version "5.1.0"}
|
||||
com.mchange/c3p0 {:mvn/version "0.9.5.5"}
|
||||
;; JDBC drivers
|
||||
;; 10.16.x is JDK17+
|
||||
|
|
@ -30,22 +30,23 @@
|
|||
org.hsqldb/hsqldb {:mvn/version "2.7.2"}
|
||||
com.h2database/h2 {:mvn/version "2.2.224"}
|
||||
net.sourceforge.jtds/jtds {:mvn/version "1.3.1"}
|
||||
org.mariadb.jdbc/mariadb-java-client {:mvn/version "3.2.0"}
|
||||
com.mysql/mysql-connector-j {:mvn/version "8.1.0"}
|
||||
org.postgresql/postgresql {:mvn/version "42.6.0"}
|
||||
io.zonky.test/embedded-postgres {:mvn/version "2.0.4"}
|
||||
io.zonky.test.postgres/embedded-postgres-binaries-darwin-amd64 {:mvn/version "16.0.0"}
|
||||
io.zonky.test.postgres/embedded-postgres-binaries-linux-amd64 {:mvn/version "16.0.0"}
|
||||
io.zonky.test.postgres/embedded-postgres-binaries-windows-amd64 {:mvn/version "16.0.0"}
|
||||
org.xerial/sqlite-jdbc {:mvn/version "3.43.0.0"}
|
||||
org.mariadb.jdbc/mariadb-java-client {:mvn/version "3.3.1"}
|
||||
com.mysql/mysql-connector-j {:mvn/version "8.2.0"}
|
||||
org.postgresql/postgresql {:mvn/version "42.7.1"}
|
||||
io.zonky.test/embedded-postgres {:mvn/version "2.0.6"}
|
||||
io.zonky.test.postgres/embedded-postgres-binaries-darwin-amd64 {:mvn/version "16.1.1"}
|
||||
io.zonky.test.postgres/embedded-postgres-binaries-linux-amd64 {:mvn/version "16.1.1"}
|
||||
io.zonky.test.postgres/embedded-postgres-binaries-windows-amd64 {:mvn/version "16.1.1"}
|
||||
org.xerial/sqlite-jdbc {:mvn/version "3.44.1.0"}
|
||||
com.microsoft.sqlserver/mssql-jdbc {:mvn/version "12.4.1.jre11"}
|
||||
;; supplementary test stuff
|
||||
;; use log4j 2.x:
|
||||
org.apache.logging.log4j/log4j-api {:mvn/version "2.20.0"}
|
||||
;; bridge into log4j:
|
||||
org.apache.logging.log4j/log4j-1.2-api {:mvn/version "2.20.0"}
|
||||
org.apache.logging.log4j/log4j-jcl {:mvn/version "2.20.0"}
|
||||
org.apache.logging.log4j/log4j-jul {:mvn/version "2.20.0"}
|
||||
org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.20.0"}}
|
||||
;; ;; use log4j 2.x:
|
||||
;; org.apache.logging.log4j/log4j-api {:mvn/version "2.22.0"}
|
||||
;; ;; bridge into log4j:
|
||||
;; org.apache.logging.log4j/log4j-1.2-api {:mvn/version "2.22.0"}
|
||||
;; org.apache.logging.log4j/log4j-jcl {:mvn/version "2.22.0"}
|
||||
;; org.apache.logging.log4j/log4j-jul {:mvn/version "2.22.0"}
|
||||
;; org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.22.0"}
|
||||
}
|
||||
:jvm-opts ["-Dlog4j2.configurationFile=log4j2-info.properties"]
|
||||
:exec-fn cognitect.test-runner.api/test}}}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ By default, `next.jdbc` assumes that a column named `<something>id` or `<somethi
|
|||
|
||||
You can override this default behavior for any column in any table by providing a `:schema` option that is a hash map whose keys are column names (usually the table-qualified keywords that `next.jdbc` produces by default) and whose values are table-qualified keywords, optionally wrapped in vectors, that identity the name of the table to which that column is a foreign key and the name of the key column within that table.
|
||||
|
||||
As of 1.3.next, you can also override this behavior via the `:schema-opts`
|
||||
As of 1.3.909, you can also override this behavior via the `:schema-opts`
|
||||
option. This is a hash map whose keys can be:
|
||||
* `:fk-suffix` -- a string used instead of `"id"` to identify foreign keys,
|
||||
* `:pk` -- a string used instead of `"id"` for the primary key column in the target table,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
com.github.seancorfield/next.jdbc {:mvn/version "1.3.894"}
|
||||
com.github.seancorfield/next.jdbc {:mvn/version "1.3.909"}
|
||||
```
|
||||
for `deps.edn` or:
|
||||
|
||||
```clojure
|
||||
[com.github.seancorfield/next.jdbc "1.3.894"]
|
||||
[com.github.seancorfield/next.jdbc "1.3.909"]
|
||||
```
|
||||
for `project.clj` or `build.boot`.
|
||||
|
||||
|
|
@ -38,7 +38,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.11.1"}
|
||||
com.github.seancorfield/next.jdbc {:mvn/version "1.3.894"}
|
||||
com.github.seancorfield/next.jdbc {:mvn/version "1.3.909"}
|
||||
com.h2database/h2 {:mvn/version "2.2.224"}}}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue