|
NAMEMooseX::TransactionalMethods - Syntax sugar for transactional methods SYNOPSIS package Foo::Bar;
use MooseX::TransactionalMethods; # includes Moose
has schema => (is => 'ro');
transactional foo => sub {
# this is going to happen inside a transaction
};
DESCRIPTIONThis method exports the "transactional" declarator that will enclose the method in a txn_do call. DECLARATOR
AUTHORSDaniel Ruoso <daniel@ruoso.com> With help from rafl and doy from #moose. COPYRIGHT AND LICENSECopyright 2010 by Daniel Ruoso et al This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|