[Dbix-class] transaction in a resultset class

Charlie Garrison garrison at zeta.org.au
Fri Apr 12 01:15:25 GMT 2013


Good morning,

On 11/04/13 at 12:06 PM -0400, shawn wilson <ag4ve.us at gmail.com> 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.


Charlie

-- 
    Ꮚ Charlie Garrison ♊ <garrison at zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt




More information about the DBIx-Class mailing list