An Architect's View

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

An Architect's View

clojure.java.jdbc 0.0.5

July 19, 2011 ·

Hot on the heels of 0.0.4, here's another point release that fixes a compatibility issue with HSQLDB (thanx Aaron Bedra for finding this problem!) as well as allowing more control over the PreparedStatement in with-query-results:

Changes in 0.0.5:

  • Add prepare-statement function to ease creation of PreparedStatement with common options:
    see docstring for details
  • with-query-results now allows the SQL/params vector to be:
    a PreparedStatement object, followed by any parameters the SQL needs
    a SQL query string, followed by any parameters it needs
    options (for prepareStatement), a SQL query string, followed by any parameters it needs
  • Add support for databases that cannot return generated keys (e.g., HSQLDB)
    insert operations silently return the insert counts instead of generated keys
    it is the user's responsibility to handle this if you're using such a database!

Tags: clojure

0 responses