Skinny/DBD/Base.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 40 CC 3 SCAR 15.5
CC
3
Cov
0%
bulk_insert
12.0
sql_for_unixtime
2.0
quote
2.0
CRAP 4.7
1 package DBIx::Skinny::DBD::Base;
2 use strict;
3 use warnings;
4 use DBIx::Skinny::SQL;
5  
6 sub sql_for_unixtime { time() }
7  
8 sub quote { '`' }
9 sub name_sep { '.' }
10  
11 sub bulk_insert {
12 my ($skinny, $table, $args) = @_;
13  
14 return unless @$args;
15  
16 my $txn = $skinny->txn_scope;
17  
18 for my $arg ( @{$args} ) {
19 $skinny->_insert_or_replace(0, $table, $arg);
20 }
21  
22 $txn->commit if $txn;
23  
24 return 1;
25 }
26  
27 sub query_builder_class { 'DBIx::Skinny::SQL' }
28 sub bind_param_attributes {}
29  
30 1;
31