| line |
true |
false |
branch |
|
25
|
0 |
0 |
if $Cache |
|
31
|
0 |
0 |
if (ref $dsn[$#dsn]) |
|
32
|
0 |
0 |
if (defined $dsn[$#dsn]{'NameSpace'}) |
|
38
|
0 |
0 |
unless my $dbh = 'ORMesque'->connect(@dsn) |
|
41
|
0 |
0 |
unless $$cfg{'driver'} |
|
49
|
0 |
0 |
defined $nsp ? : |
|
51
|
0 |
0 |
unless $dbh |
|
52
|
0 |
0 |
unless $$cfg{'driver'} |
|
56
|
0 |
0 |
if lc($$cfg{'driver'}) =~ /^postgre(s)?(ql)?$/ |
|
60
|
0 |
0 |
if lc $$cfg{'driver'} eq 'mysql' |
|
64
|
0 |
0 |
if lc $$cfg{'driver'} eq 'sqlite' |
|
69
|
0 |
0 |
unless @{$$self{'schema'}{'tables'};} |
|
72
|
0 |
0 |
unless $$self{'dbh'} = 'DBIx::Simple'->connect($$dbh{'dbh'}) |
|
89
|
0 |
0 |
if ($classtable =~ /[\-\_]/) { } |
|
143
|
0 |
0 |
if $@ |
|
159
|
0 |
0 |
unless $$dbo{'schema'}{'escape_string'} |
|
162
|
0 |
0 |
length $$dbo{'schema'}{'escape_string'} == 1 ? : |
|
169
|
0 |
0 |
if ('HASH' eq ref $sql[0]) { } |
|
172
|
0 |
0 |
if ($_ =~ /[^a-zA-Z\_0-9\s]/) { } |
|
183
|
0 |
0 |
if ($_ =~ /[^a-zA-Z\_0-9\s]/) { } |
|
192
|
0 |
0 |
'ARRAY' eq ref $params ? : |
|
198
|
0 |
0 |
if defined $namespace |
|
214
|
0 |
0 |
$$dbo{'cursor'} <= scalar(@{$$dbo{'collection'};}) - 1 ? : |
|
273
|
0 |
0 |
if @_ |
|
283
|
0 |
0 |
if $dbo->key |
|
295
|
0 |
0 |
if (defined $whr) |
|
313
|
0 |
0 |
unless keys %{$input;} |
|
317
|
0 |
0 |
if ($input) |
|
319
|
0 |
0 |
if (defined $$dbo{'current'}{$i}) |
|
329
|
0 |
0 |
$dbo->error ? : |
|
338
|
0 |
0 |
if ('ARRAY' eq ref $_[0]) |
|
349
|
0 |
0 |
if (defined $$dbo{'select'}) { } |
|
357
|
0 |
0 |
if ($where and ref $where ne 'HASH') |
|
361
|
0 |
0 |
if ($limit or $offset or $$dbo{'ispaged'}) { } |
|
363
|
0 |
0 |
if ($$dbo{'ispaged'}) |
|
396
|
0 |
0 |
if (defined $$dbo{'select'}) { } |
|
405
|
0 |
0 |
unless (defined $$_{$i}) |
|
424
|
0 |
0 |
if defined $$dbo{'select'} |
|
426
|
0 |
0 |
$dbo->error ? : |
|
440
|
0 |
0 |
unless keys %{$input;} |
|
443
|
0 |
0 |
if ($where and ref $where ne 'HASH') |
|
451
|
0 |
0 |
if keys %{$input;} |
|
453
|
0 |
0 |
$dbo->error ? : |
|
463
|
0 |
0 |
if (ref $where eq 'HASH') { } |
|
|
0 |
0 |
elsif ($where and $dbo->key and ref $where ne 'HASH') { } |
|
475
|
0 |
0 |
$dbo->error ? : |
|
485
|
0 |
0 |
$dbo->error ? : |
|
492
|
0 |
0 |
unless $$dbo{'table'} |
|
504
|
0 |
0 |
if ('HASH' eq ref $objs[$i]) { } |
|
515
|
0 |
0 |
if (@objs > 1) { } |
|
517
|
0 |
0 |
unless $$obj{'table'} and $$obj{'collection'} |
|
527
|
0 |
0 |
if (keys %{$objs[$y]{'join_configuration'};}) |
|
528
|
0 |
0 |
if ($$cfg{'persist'}) |
|
533
|
0 |
0 |
unless $rec |
|
536
|
0 |
0 |
if ($$cfg{'columns'}) |
|
558
|
0 |
0 |
unless @_ == 2 |
|
656
|
0 |
0 |
if (time - $$dbo{'last_chk'} < 10) { } |
|
660
|
0 |
0 |
if ($dbo->connected) { } |
|
664
|
0 |
0 |
unless $$dbo{'dbh'} = 'DBIx::Simple'->connect(@{$$dbo{'dsn'};}) |
|
681
|
0 |
0 |
unless $$dbo{'dbh'}{'dbh'} |
|
682
|
0 |
0 |
if (int $$dbo{'dbh'}{'dbh'}->ping) { } |