[Dbix-class] Autocommit => 0
Peter Rabbitson
rabbit+dbic at rabbit.us
Mon Nov 26 13:17:00 GMT 2012
On Mon, Nov 26, 2012 at 04:14:18PM +0400, Dmitry Belyavsky wrote:
> Greetings!
>
> I prefer to set AutoCommit to 0 because it helps to avoid extra commits
> during debug just not writing the commit() function, whether I use
> DBIx::Class or plain DBI.
The same effect can be achieved in a much saner way by wrapping the
entire debug session in a transaction and killing it right before the
block's end by throwing an exception or something. What you described is
a prime example of "erroneous use of AC = 0" :)
Cheers
More information about the DBIx-Class
mailing list