Clojure Contrib wrapper for JDBC

[org.clojure/java.jdbc “0.7.5”]

A fairly minor, but useful, update:

Previously, if you used execute! with an INSERT statement, all you got back was 
the number of rows inserted. Now you can specify :return-keys true and you will 
get back the generated keys from the INSERT (if your database/driver supports 
it). Given that insert! only supported a very straightforward SQL equivalent (a 
Clojure hash map to be inserted as-is to a single row), this was a pain point 
for all but the simplest insert statements.

In addition, :multi? true is supported on db-do-prepared-return-keys to support 
multi-row inserts (again, if your database/driver supports it). This was added 
because execute! supported :multi? true and I needed to make :return-keys work 
with that too.

https://github.com/clojure/java.jdbc#change-log

The roadmap for java.jdbc includes adding built-in support for calling stored 
procedures and handling multiple result sets. I’d welcome assistance with those 
(especially the former, since I’ve never worked with stored procedures). Once 
that point is reached, I’ll probably declare a 1.0.0 release.

JIRA issues, patches, and general suggestions are always welcome.

The best place to catch me for support with clojure.java.jdbc is the #sql 
channel on the Clojurians Slack.

Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to