http://seancorfield.github.io for newer blog posts." />

An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

clojure.java.jdbc 0.3.0 beta2

November 24, 2013 · No Comments

Based on feedback from the community, I have released clojure.java.jdbc 0.3.0-beta2 to Maven Central.

This includes two very important changes:

  • The clojure.java.jdbc.sql and clojure.java.jdbc.ddl namespaces have been removed.
  • The API functions that were already marked as deprecated have moved to the clojure.java.jdbc.deprecated namespace

This means that if you depend on the clojure.java.jdbc.sql or clojure.java.jdbc.ddl namespaces, which were introduced in 0.3.0-alpha1, you will need to switch to the java-jdbc/dsl project (release 0.1.0 is on Clojars). The new namespaces in that project are java-jdbc.sql and java-jdbc.ddl. If you depend on these namespaces, I strongly recommend you migrate to a more sophisticated DSL, such as:

  • HoneySQL - https://github.com/jkk/honeysql
  • SQLingvo - https://github.com/r0man/sqlingvo
  • Korma - http://www.sqlkorma.com

More importantly, if you depend on the older (0.2.3) API in clojure.java.jdbc, you'll need to switch to the clojure.java.jdbc.deprecated namespace in your code, until you can migrate to new API in clojure.java.jdbc instead.

These steps are more radical than I would have liked but they simplify the library and streamline the API - and the auto-generated documentation - which should reduce all the confusion expressed about the library right now. This will allow the library to move forward in a more focused manner, with an API that no longer depends on dynamic variables.

Tags: clojure

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

Leave this field empty