On Thu, Apr 11, 2013 at 10:58:50AM -0400, shawn wilson wrote:
> Since txn_* is a part of the schema, how do I have a resultset method
> always run within one transaction without passing $schema (which just
> seems kludgy)? Since I can't find anything on google about doing this,
> I'm guessing it's a bad idea or there's some obviousness I'm missing?

First

http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/ResultSet.pm#result_source

And then

http://search.cpan.org/~ribasushi/DBIx-Class-0.08210/lib/DBIx/Class/ResultSource.pm#schema

Cheers


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to