line |
true |
false |
branch |
96
|
28 |
0 |
if (my $schema_class = $args{'schema'}) { }
|
97
|
28 |
0 |
unless 'Class::Inspector'->loaded($schema_class)
|
107
|
28 |
0 |
if (my $filter_class = $args{'filter'}) { }
|
108
|
26 |
2 |
unless 'Class::Inspector'->loaded($filter_class)
|
119
|
0 |
28 |
if (my $handler_class = $args{'handler'})
|
120
|
0 |
0 |
unless 'Class::Inspector'->loaded($handler_class)
|
127
|
0 |
28 |
unless my $method = $class->can("_fetch_last_insert_id_from_$driver")
|
133
|
28 |
0 |
$class->use_prepare_cached ? :
|
134
|
0 |
28 |
if ($args{'query_builder'})
|
135
|
0 |
0 |
unless 'Class::Inspector'->loaded($args{'query_builder'})
|
147
|
28 |
0 |
if ($args{'row'})
|
148
|
26 |
2 |
unless 'Class::Inspector'->loaded($args{'row'})
|
159
|
0 |
5 |
unless /\ACan\'t\ locate/imou
|
172
|
0 |
28 |
if ($args{'result'})
|
173
|
0 |
0 |
unless 'Class::Inspector'->loaded($args{'result'})
|
184
|
0 |
0 |
unless /\ACan\'t\ locate/imou
|
214
|
95 |
338 |
if exists $self->{'_context'}
|
220
|
64 |
2 |
unless $opt->{'no_filter'}
|
223
|
66 |
0 |
if $table
|
240
|
11 |
2 |
if (&blessed($_[1]) and $_[1]->isa('Aniki::Row'))
|
248
|
4 |
9 |
unless $set and %$set
|
249
|
1 |
8 |
unless ref $where
|
251
|
2 |
6 |
unless $opt->{'no_filter'}
|
254
|
8 |
0 |
if ($table)
|
265
|
1 |
4 |
unless &blessed($row) and $row->isa('Aniki::Row')
|
276
|
1 |
4 |
unless &blessed($row) and $row->isa('Aniki::Row')
|
279
|
1 |
2 |
if $self->suppress_row_objects
|
300
|
1 |
3 |
if (&blessed($_[0]) and $_[0]->isa('Aniki::Row')) { }
|
305
|
1 |
2 |
unless ref $where
|
308
|
2 |
0 |
if ($table)
|
328
|
0 |
20 |
unless defined wantarray
|
339
|
0 |
6 |
unless my $table = $self->schema->get_table($table_name)
|
344
|
0 |
6 |
unless defined wantarray
|
347
|
0 |
6 |
if $self->suppress_row_objects
|
356
|
0 |
2 |
unless my $table = $self->schema->get_table($table_name)
|
360
|
2 |
0 |
unless $opt->{'no_filter'}
|
363
|
0 |
2 |
unless defined wantarray
|
367
|
4 |
6 |
if (exists $$row{$field->name}) { }
|
|
4 |
2 |
elsif (defined(my $default_value = $field->default_value)) { }
|
|
2 |
0 |
elsif ($field->is_auto_increment) { }
|
371
|
0 |
4 |
ref $default_value eq 'SCALAR' ? :
|
380
|
0 |
2 |
if $self->suppress_row_objects
|
391
|
0 |
0 |
if ($self->schema->database ne 'MySQL')
|
399
|
0 |
0 |
if ($table)
|
411
|
1 |
9 |
unless @$values
|
413
|
0 |
9 |
defined $opts ? :
|
416
|
0 |
9 |
if (exists $opts->{'update'})
|
417
|
0 |
0 |
if ($self->schema->database ne 'MySQL')
|
424
|
9 |
0 |
if ($table)
|
426
|
0 |
9 |
if (exists $opts->{'update'})
|
431
|
0 |
9 |
if ($self->schema->database eq 'MySQL') { }
|
446
|
0 |
24 |
unless $table->primary_key
|
451
|
6 |
0 |
$pk->is_auto_increment ? :
|
|
18 |
6 |
exists $$row_data{$pk->name} ? :
|
467
|
0 |
74 |
unless ref $where
|
472
|
74 |
0 |
defined $table ? :
|
|
0 |
74 |
exists $opt->{'columns'} ? :
|
475
|
74 |
0 |
if defined $table
|
488
|
0 |
31 |
unless @$rows
|
490
|
0 |
31 |
if ref $prefetch eq 'HASH'
|
494
|
5 |
25 |
if (ref $key and ref $key eq 'HASH') { }
|
509
|
0 |
29 |
unless ($relationship)
|
524
|
2 |
78 |
if $opt->{'suppress_row_objects'}
|
525
|
11 |
69 |
if $opt->{'suppress_result_objects'}
|
527
|
74 |
6 |
exists $opt->{'table_name'} ? :
|
528
|
74 |
6 |
exists $opt->{'columns'} ? :
|
529
|
33 |
47 |
exists $opt->{'prefetch'} ? :
|
530
|
5 |
75 |
if ref $prefetch eq 'HASH'
|
533
|
8 |
72 |
if ($prefetch_enabled_fg)
|
534
|
4 |
4 |
unless $self->in_txn
|
540
|
4 |
4 |
if defined $txn
|
548
|
0 |
72 |
unless (defined wantarray)
|
559
|
0 |
80 |
if $columns == $WILDCARD_COLUMNS
|
568
|
11 |
69 |
if ($self->suppress_result_objects)
|
569
|
2 |
9 |
if $self->suppress_row_objects
|
596
|
375 |
0 |
$self->use_prepare_cached ? :
|
601
|
0 |
375 |
if ($@)
|
615
|
83 |
131 |
if (ref $args->{$col}) { }
|
|
131 |
0 |
elsif (my $field = $table->get_field($col)) { }
|
633
|
131 |
62 |
if (&blessed($v) and $v->isa('SQL::Maker::SQLType')) { }
|
661
|
0 |
1 |
if $self->suppress_row_objects
|
673
|
0 |
2 |
if $self->suppress_result_objects
|
686
|
6 |
0 |
if $sql =~ /\sfrom\s+(["`]?)([\w]+)\1\s*/iosu
|
696
|
0 |
0 |
unless defined $column
|
738
|
24 |
0 |
if $self->handler
|