<< Back to previous view

[JDBC-52] Allow execute! to do batch updates via :multi? optional argument Created: 19/Apr/13  Updated: 01/Jun/16  Resolved: 19/Apr/13

Status: Closed
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: Sean Corfield Assignee: Sean Corfield
Resolution: Completed Votes: 0
Labels: None


See https://groups.google.com/d/msg/clojure-java-jdbc/H3spAaWgkZI/9WJPXJsHiVsJ for background and justification.

execute! would take an optional :multi? argument, default false, and execute-helper would either call db-do-prepared directly (as it does now) or apply it, assuming (rest sql-params) is a sequence of vectors, which would become multiple params-groups.

I think this would also allow insert! to be simplified and implemented in terms of execute! which would be a nice symmetry.

Comment by Sean Corfield [ 19/Apr/13 9:18 PM ]

Implemented. Will be in alpha2.

Generated at Tue Jan 16 07:26:09 CST 2018 using JIRA 4.4#649-r158309.