| 1 | package # hide from PAUSE | ||
| 2 | DBIx::Class::CDBICompat::ReadOnly; | ||
| 3 | |||
| 4 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 0 | ▶ | sub make_read_only { |
|
Subroutine
make_read_only: not called CC=2 SCAR=17.9
Pod
undocumented
| |||
| 8 | 0 | my $proto = shift; | |
| 9 | 0 | ▶ | $proto->add_trigger("before_$_" => sub { shift->throw_exception("$proto is read only") }) |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 10 | 0 | foreach qw/create delete update/; | |
| 11 | 0 | return $proto; | |
| 12 | } | ||
| 13 | |||
| 14 | 2 | 1; | |