| 1 | package Data::Model::Driver::DBI::DBD; | ||||||||||
| 2 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 3 | ▶ | use Carp (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 3 | $Carp::Internal{(__PACKAGE__)}++; | |||||||||
| 7 | |||||||||||
| 8 | 4 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 9 | 4 | my($class, $dbd, %args) = @_; | |||||||||
| 10 | 4 | my $dbd_class = "$class\::$dbd"; | |||||||||
| 11 | 4 | ▶ | eval "use $dbd_class;"; ## no critic | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 4 | ▶ | Carp::croak $@ if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 4 | bless { %args }, $dbd_class; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | sub fetch_last_id {} | ||||||||
|
Subroutine
fetch_last_id: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 17 | 0 | ▶ | sub bind_param_attributes {} | ||||||||
|
Subroutine
bind_param_attributes: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | 0 | ▶ | sub can_replace { 1 } | ||||||||
|
Subroutine
can_replace: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub has_support { 0 } | ||||||||
|
Subroutine
has_support: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 21 | |||||||||||
| 22 | 7 | ▶ | sub _as_sql_hook { | ||||||||
|
Subroutine
_as_sql_hook: called CC=2 SCAR=6.9
| |||||||||||
| 23 | 7 | my $self = shift; | |||||||||
| 24 | 7 | my $c = shift; | |||||||||
| 25 | 7 | my $method = shift; | |||||||||
| 26 | |||||||||||
| 27 | 7 | $method =~ s/^as_//; | |||||||||
| 28 | 7 | ▶ | if (my $code = $self->can("_as_sql_$method")) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | 4 | return $code->($self, $c, @_); | |||||||||
| 30 | } | ||||||||||
| 31 | 3 | return; | |||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 3 | 1; | |||||||||