DBICx::TxnInsert - wrap all inserts into transaction
This component wrap all inserts into transactions.
package My::Schema::Entity;
__PACKAGE__->load_components(qw/DBICx::TxnInsert Core/);
...
This module uses DBIx::Class internals, may be not compatible with future
versions of DBIx::Class.
You need to use it only in one case: last_insert_id should be
called in same transaction as insert itself. For example in case you config
is Application(DBIx::Class) <-> pgbouncer <-> postgresql
server.
see DBIx::Class::Row::insert
Vladimir Timofeev, "<vovkasm at
gmail.com>"
Please report any bugs or feature requests to
"bug-dbicx-txninsert at rt.cpan.org", or
through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DBICx-TxnInsert>. I will
be notified, and then you'll automatically be notified of progress on your bug
as I make changes.
You can find documentation for this module with the perldoc command.
perldoc DBICx::TxnInsert
- RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBICx-TxnInsert>
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/DBICx-TxnInsert>
- CPAN Ratings
<http://cpanratings.perl.org/d/DBICx-TxnInsert>
- Search CPAN
<http://search.cpan.org/dist/DBICx-TxnInsert/>
Copyright 2009 Vladimir Timofeev, all rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.