| 1 | package Qudo::Driver::DBI::DBD; | ||||||||||
| 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 | sub new { | ||||||||||
| 6 | 0 | ▶ | my ($class, $dbd_type) =@_; | ||||||||
|
Subroutine
new: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 7 | 0 | ▶ | die 'No Driver' unless $dbd_type; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 8 | |||||||||||
| 9 | 0 | my $subclass = join '::', $class, $dbd_type; | |||||||||
| 10 | 0 | eval "use $subclass"; ## no critic | |||||||||
| 11 | 0 | ▶ | die $@ if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | bless {}, $subclass; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 1 | 1; | |||||||||
| 16 | |||||||||||