I've checked in updates to clojure.contrib.sql. The theme is providing update and delete functions and a move to pervasive support of parameterization in queries and selection criteria. Please see the doc strings for detailed changes.

Here's a summary of the changes:

sql.clj

- Add "update-values" to update values on rows matching selection criteria, supports parameterized criteria

- Add "delete-rows" to delete rows matching selection criteria, supports parameterized criteria

- Low level "do-commands" and "do-prepared" functions now return a Clojure vector giving summary results rather than a Java array

- "with-results" -> "with-query-results", a thinner macro calling an internal function, supports parameterized query

 - Updated doc strings to improve clarity and correctness

sql/internal.clj

 - Add with-query-results*

 - Update doc strings to improve clarity and correctness

sql/test.clj

 - Provide doc strings

 - Fix db-exception to use a transaction

 - Add db-update-appearance-cost, example of update-values

 - Add db-update, easily callable example of update-values

 - Add db-grade-range, example of parameterized query

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to