On Thu, Apr 11, 2013 at 9:15 PM, Charlie Garrison <[email protected]> wrote: > Good morning, > > > On 11/04/13 at 12:06 PM -0400, shawn wilson <[email protected]> wrote: > >> Err, not sure if that was stated that well - how would I write something >> like: >> >> $schema->txn_do(sub{ >> $self->create({ >> url => $page, >> stamp => time, >> }); >> }); > > > Did you read the docco Peter sent links for? It explains how to get $schema. > > If you did read it, then which part of it is confusing? (There has been > recent discussion about improving docs and a patch to make it clearer would > be appreciated I'm sure.) > > Also, telling us where your confusion is will help us to help you further. >
I had to read it a few more times until I got it. I think that maybe showing more resultset examples in the cookbook might've helped or have working Cookbook::Recipe(s) like Moose? Even taking the artist cd example out of cookbook and making a working example (with or without explanation but in a runable forum) would be cool. _______________________________________________ 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/[email protected]
