Skinny/DBD/Pg.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 36 CC 3 SCAR 16.1
CC
3
Cov
0%
bind_param_attributes
12.0
sql_for_unixtime
2.0
quote
2.0
CRAP 5.0
1 package DBIx::Skinny::DBD::Pg;
2 use strict;
3 use warnings;
4 use base 'DBIx::Skinny::DBD::Base';
5 use DBD::Pg qw(:pg_types);
6  
7 sub sql_for_unixtime { "TRUNC(EXTRACT('epoch' from NOW()))" }
8  
9 sub quote { '"' }
10 sub name_sep { '.' }
11  
12 sub bind_param_attributes {
13 my($self, $data_type) = @_;
14 if ($data_type) {
15 if ($data_type eq 'bytea' ) {
16 return { pg_type => DBD::Pg::PG_BYTEA };
17 }
18 }
19 return;
20 }
21  
22 1;
23