line |
true |
false |
branch |
10
|
17 |
0 |
if (not $ENV{'MOJO_MYSQL_DATABASE_ROLE_LOAD_DATA_INFILE_NO_XS'} and eval {
do {
require Text::CSV_XS;
1
}
}) { } |
22
|
3 |
19 |
if (grep {$_ eq '-no_apply';} @_) |
23
|
1 |
2 |
if @_ == 1 |
30
|
2 |
17 |
if %options |
38
|
0 |
0 |
ref $_[-1] eq 'CODE' ? : |
58
|
0 |
0 |
if ($cb) { } |
74
|
0 |
0 |
$_[1] ? : |
84
|
0 |
0 |
unless csv('in', $rows, 'out', $temp_fh, 'sep_char', "\t", 'quote_char', '"', 'eol', "\n", 'headers', $headers) |
103
|
0 |
0 |
if %options |
111
|
0 |
0 |
if ($options->{'low_priority'} and $options->{'concurrent'}) |
115
|
0 |
0 |
delete $options->{'low_priority'} ? : |
116
|
0 |
0 |
delete $options->{'concurrent'} ? : |
124
|
0 |
0 |
if ($options->{'replace'} and $options->{'ignore'}) |
127
|
0 |
0 |
delete $options->{'replace'} ? : |
128
|
0 |
0 |
delete $options->{'ignore'} ? : |
135
|
0 |
0 |
unless defined $table and $table ne '' |
146
|
0 |
0 |
if $partition and $ref ne 'ARRAY' |
148
|
0 |
0 |
$partition && @$partition ? : |
154
|
0 |
0 |
if ($options->{'character_set'} xor $options->{'tempfile_open_mode'}) |
169
|
0 |
0 |
if $set and $ref ne 'ARRAY' |
174
|
0 |
0 |
unless keys %$_ == 1 |
|
0 |
0 |
$set && @$set ? : |
185
|
0 |
0 |
unless ref $rows eq 'ARRAY' |
186
|
0 |
0 |
unless @$rows |
189
|
0 |
0 |
if (ref $rows->[0] eq 'ARRAY') { } |
191
|
0 |
0 |
unless $options->{'columns'} and @{$options->{'columns'};} |
196
|
0 |
0 |
if $options->{'columns'} and not @{$options->{'columns'};} |
200
|
0 |
0 |
if (ref $_ and ref $_ eq 'HASH') { } |
201
|
0 |
0 |
unless $hashes_in_columns_allowed |
202
|
0 |
0 |
unless keys %$_ == 1 |
208
|
0 |
0 |
unless defined $header and $header ne '' |
214
|
0 |
0 |
if (ref $_ and ref $_ eq 'HASH') { } |
215
|
0 |
0 |
unless $hashes_in_columns_allowed |
216
|
0 |
0 |
unless keys %$_ == 1 |
222
|
0 |
0 |
unless defined $column and $column ne '' |