Atsushi Kobayashi > DBIx-Skinny-0.0729 > DBIx::Skinny::Transaction

Download:
DBIx-Skinny-0.0729.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

DBIx::Skinny::Transaction - transaction manager for DBIx::Skinny

SYNOPSIS ^

  sub do_work {
      my $txn = Your::Model->txn_scope; # start transaction

      my $row = Your::Model->single('user', {id => 1});
      $row->set({name => 'nekokak'});
      $row->update;

      $txn->commit; # commit
  }

SEE ALSO ^

Data::Model

syntax highlighting: