Database Transactions



ActiveRecord's standard procedure for transactions is to send a block,
and throw an exception to roll it back (
http://api.rubyonrails.com/classes/ActiveRecord/Transactions/ClassMethods.html
). I found this rather uncomfortable. I'd like to be able to begin
transactions, commit them, or roll them back from within (fairly)
complex control structures - and having to do everything within a
block, with one way out, is no good.

Any suggestions?

PS This question concerns ActiveRecord, an O/R mapper which can be used
for lots of things. It's _not_ a _rails_ questions (what's rails???)

.



Relevant Pages

  • Re: Database Transactions
    ... and throw an exception to roll it back ( ... >> transactions, commit them, or roll them back from within ...
    (comp.lang.ruby)
  • Re: Database Transactions
    ... > ActiveRecord's standard procedure for transactions is to send a block, ... > and throw an exception to roll it back ( ... > transactions, commit them, or roll them back from within ...
    (comp.lang.ruby)
  • Re: Update a Table using transactions
    ... thks, but i have 2 tables with lots of fields, and doing a Store procedure ... > acceptchanges is called and the rowstates of all the rows in the first ... > concurrency exception and the rowstates are changed? ... > procs and implementing your transactions on the back end. ...
    (microsoft.public.dotnet.framework.adonet)
  • Need help to solve a BSOD in a WdfDmaTransactionRelease call
    ... My kernel mode driver is crashing when I'm trying to relase scheduled DMA ... Release + Delete all found transactions: ... The exception code that was not handled ...
    (microsoft.public.development.device.drivers)
  • Re: Update a Table using transactions
    ... acceptchanges is called and the rowstates of all the rows in the first table ... concurrency exception and the rowstates are changed? ... procs and implementing your transactions on the back end. ... > ' bla bla bla ...
    (microsoft.public.dotnet.framework.adonet)