Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MooseX::Meta::Method::UsersContributed PMooseX::Meta::Method::Transactional(3)

NAME
       MooseX::Meta::Method::Transactional - Transactional methods trait

DESCRIPTION
       This Role wraps methods in transactions to be used with DBIx::Class,
       KiokuDB or any other object providing a txn_do method.

METHOD
       wrap
	   This	role overrides wrap so that the	actual method is wrapped in a
	   txn_do call.	It uses	the 'schema' accessor to obtain	the object in
	   which it will call txn_do.

ATTRIBUTES
       schema
	   This	attribute contains a CodeRef that should return	the schema
	   object. It can be used to pass a schema object when it can be
	   defined in compile-time, otherwise it will call "schema" on the
	   object instance to find it.

SEE ALSO
       MooseX::TransactionalMethods, Class::MOP::Method

AUTHORS
       Daniel Ruoso <daniel@ruoso.com>

       With help from rafl and doy from	#moose.

COPYRIGHT AND LICENSE
       Copyright 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.

perl v5.24.1			  2015-0MooseX::Meta::Method::Transactional(3)

NAME | DESCRIPTION | METHOD | ATTRIBUTES | SEE ALSO | AUTHORS | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=MooseX::Meta::Method::Transactional&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help