try {
$self->schema->txn_do(sub {
# something went bad
die 'argh';
});
}
catch ($e) {
# log me
# no roll back needed
}
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Showing posts with label rollback. Show all posts
Showing posts with label rollback. Show all posts
Rollback within a txn_do for DBIC
Subscribe to:
Posts (Atom)