Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.6
-
Fix Version/s: 1.6.2, 1.7-beta-1
-
Component/s: SQL processing
-
Labels:None
-
Number of attachments :
Description
When doing a set of write operations sometimes a statement-set should follow transaction semantics. Thus a closure like withTransaction{} inside groovy.sql.Sql class would be very handy.
For discussion see also http://www.nabble.com/groovy.sql.Sql-and-doing-SQL-statements-in-one-transaction-td2594039.html#a20562605
I'd love to see this included by default also, and it would be great if this usage as shown in the email above (which I found through Google) was added to the groovy sql docs. (In the meantime can someone add this good closure example to the docs?)