« blib/lib/DBIx/TransactionManager/Extended.pm
↑ Summary
blib/lib/DBIx/TransactionManager/Extended/Compat.pm »
| 1 | package DBIx::TransactionManager::Extended::Txn; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use DBIx::TransactionManager; ## XXX: it includes '::ScopeGuard' package | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | sub new { | ||||||||||
| 8 | 0 | ▶ | my ($class, $manager, %args) = @_; | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 9 | 0 | ▶ | $args{caller} = [caller(1)] unless $args{caller}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | 0 | my $guard = DBIx::TransactionManager::ScopeGuard->new($manager => %args); | |||||||||
| 11 | 0 | return bless [$guard, $manager] => $class; | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub rollback { shift->[0]->rollback } | ||||||||
|
Subroutine
rollback: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 15 | 0 | ▶ | sub commit { shift->[0]->commit } | ||||||||
|
Subroutine
commit: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub context_data { shift->[1]->context_data } | ||||||||
|
Subroutine
context_data: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 18 | 0 | ▶ | sub add_hook_after_commit { shift->[1]->add_hook_after_commit(@_) } | ||||||||
|
Subroutine
add_hook_after_commit: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 0 | ▶ | sub add_hook_before_commit { shift->[1]->add_hook_before_commit(@_) } | ||||||||
|
Subroutine
add_hook_before_commit: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 0 | ▶ | sub remove_hook_after_commit { shift->[1]->remove_hook_after_commit(@_) } | ||||||||
|
Subroutine
remove_hook_after_commit: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 21 | 0 | ▶ | sub remove_hook_before_commit { shift->[1]->remove_hook_before_commit(@_) } | ||||||||
|
Subroutine
remove_hook_before_commit: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 22 | |||||||||||
| 23 | 1 | 1; | |||||||||
| 24 | __END__ | ||||||||||