Skip to content

Releases: seancorfield/next-jdbc

1.3.847

05 Nov 05:22
Compare
Choose a tag to compare
  • Fix #232 by using as-cols in insert-multi! SQL builder. Thanks to @changsu-farmmorning for spotting that bug!
  • Fix #229 by adding next.jdbc.connect/uri->db-spec which converts a URI string to a db-spec hash map; in addition, if DriverManager/getConnection fails, it assumes it was passed a URI instead of a JDBC URL, and retries after calling that function and then recreating the JDBC URL (which should have the effect of moving the embedded user/password credentials into the properties structure instead of the URL).
  • Address #228 by adding PreparedStatement caveat to the Oracle Tips & Tricks section.
  • Address #226 by adding a section on exception handling to Tips & Tricks (TL;DR: it's all horribly vendor-specific!).
  • Add on-connection to exported clj-kondo configuration.
  • Switch run-test from sh to bb.

1.3.834

23 Sep 18:02
Compare
Choose a tag to compare
  • Fix #227 by correcting how #221 was implemented.
  • Address #224 by attempting to clarify how to use the snake/kebab options and builders.

1.3.828

11 Sep 19:06
Compare
Choose a tag to compare
  • Fix #222 by correcting implementation of .cons on a row.
  • Address #221 by supporting :column-fn a top-level option in plan-related functions to transform keys used in reducing function contexts. Also corrects handling of column names in schema navigation (which previously only supported :table-fn and incorrectly applied it to columns as well).
  • Address #218 by moving :extend-via-metadata true after the protocols' docstrings.
  • Document :useBulkCopyForBatchInsert for Microsoft SQL Server via PR #216 -- danskarda.
  • Address #215 by dropping official support for JDK 8 and updating various JDBC drivers in the testing matrix.
  • Address #214 by updating test/CI versions.
  • Address #212 by documenting the problem with SQLite's JDBC driver.
  • Fix #211 by auto-creating clojure_test DB in MySQL if needed; also streamline the CI processes.
  • Fix #210 by updating CI to test against MySQL and SQL Server.
  • Switch SQL Server testing setup to docker-compose.

1.2.796

01 Aug 16:43
Compare
Choose a tag to compare
  • Make Transactable extensible via metadata, via PR #209 -- @vemv.
  • Fix #208 by treating unsupported exception as an empty string, just like the JDBC docs say should happen.

1.2.790

29 Jul 22:19
Compare
Choose a tag to compare
  • Address #207 by supporting "db-spec" hash maps containing :datasource or :connection-uri (this is otherwise undocumented and intended to aid migration from clojure.java.jdbc).
  • Address #199 by adding notes on UTC usage -- @denismccarthykerry.
  • Enhance insert-multi! to accept a sequence of hash maps and also to support batch execution, via PR #206 -- @rschmukler.
  • Fix HikariCP pooling example.

1.2.780

05 Apr 00:00
Compare
Choose a tag to compare
  • Address #204 by adding next.jdbc/on-connection.
  • Address #203 by adding a note to the PostgreSQL Tips & Tricks section.
  • Update build-clj to v0.8.0.

1.2.772

10 Feb 05:48
Compare
Choose a tag to compare
  • To support more tools that perform datafy/nav, make rows directly navable (even though this is not really the correct behavior).
  • Address #193 by expanding the argument specs for get-datasource and get-connection.
  • Streamline execute-batch! for with-options and with-logging (and this should generalize to any wrapper that satisfies Connectable and stores the actual Connection under the :connectable key).
  • Update log4j2 test dependency.
  • Update build-clj to v0.6.7.

1.2.761

16 Dec 04:39
Compare
Choose a tag to compare
  • Fix #194 by throwing an exception if a table or column name used with the friendly SQL functions (or the SQL builder functions behind them) contains a "suspicious" character (currently, that's just ;).
  • Update several test dependencies (incl. log4j2).
  • Update build-clj to v0.6.3.

1.2.753

17 Nov 22:30
Compare
Choose a tag to compare
  • Address #187 by adding clj-kondo.exports for future expansion (with-transaction is already built into clj-kondo).
  • Documentation updates; pom.xml template cleanup.
  • Update build-clj to v0.5.4.

1.2.737

17 Oct 16:25
Compare
Choose a tag to compare
  • Address #186 by updating java.data to 1.0.92 and documenting HikariCP's :dataSourceProperties.
  • Address #184 by improving documentation about :jdbcUrl.