| 1 | package Rose::DB::Generic; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 2 | ▶ | use Rose::DB; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 2 | our $VERSION = '0.11'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | # | ||||||||||||||||||||
| 10 | # Object methods | ||||||||||||||||||||
| 11 | # | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | sub build_dsn | ||||||||||||||||||||
| 14 | 2 | ▶ | { | ||||||||||||||||||
|
Subroutine
build_dsn: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||||||||||||
| 15 | 2 | my($self_or_class, %args) = @_; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 2 | my %info; | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 2 | ▶ | $info{'dbname'} = $args{'db'} || $args{'database'}; | ||||||||||||||||||
|
Condition33%1/3
$args{'db'} || $args{'database'}
MC/DC0%0/2
$args{'db'} || $args{'database'}
$args{'db'}
$args{'database'}
Truth table33%1/3
A || B
A= $args{'db'}B= $args{'database'}
| |||||||||||||||||||||
| 20 | 2 | $info{'host'} = $args{'host'}; | |||||||||||||||||||
| 21 | 2 | $info{'port'} = $args{'port'}; | |||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | return | ||||||||||||||||||||
| 24 | "dbi:$args{'dbi_driver'}:" . | ||||||||||||||||||||
| 25 | 2 | join(';', map { "$_=$info{$_}" } grep { defined $info{$_} } | |||||||||||||||||||
| 26 | qw(dbname host port)); | ||||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 0 | ▶ | sub last_insertid_from_sth { } | ||||||||||||||||||
|
Subroutine
last_insertid_from_sth: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 2 | 1; | |||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | __END__ | ||||||||||||||||||||