blib/lib/blx/xsdsql/schema_repository/sql/mysql/limits.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
_get_sql_translate
2.0
_get_limits
2.0
_get_maxlimits
2.0
CRAP 2.0
1 package blx::xsdsql::schema_repository::sql::mysql::limits;
2 use strict; # use strict is for PBP
3 use Filter::Include;
4 include blx::xsdsql::include;
5 #line 6
6  
7 use base qw(blx::xsdsql::schema_repository::sql::generic::limits);
8  
9 my %LIMITS=();
10  
11 my %MAXLIMITS=(
12 string => { SIZE => 10485760 }
13 ,fixedstring => { FIXSIZE => 10485760 }
14 ,sizestring => { SIZE => 10485760 }
15 );
16  
17  
18 my %SQL_TRANSLATE=(
19 boolean => 'boolean'
20 ,integer => 'decimal(%i)'
21 ,number => 'numeric(%i,%d)'
22 ,number3 => 'smallint'
23 ,number5 => 'smallint'
24 ,number10 => 'integer'
25 ,number20 => 'bigint'
26 ,unumber3 => 'smallint'
27 ,unumber5 => 'integer'
28 ,unumber10 => 'bigint'
29 ,unumber20 => 'decimal(20,0)'
30 );
31  
32  
33 sub _get_sql_translate { return \%SQL_TRANSLATE; }
34  
35 sub _get_limits { return \%LIMITS; }
36  
37 sub _get_maxlimits { return \%MAXLIMITS; }
38  
39  
40  
41 sub new {
42 my ($class,%params)=@_;
43 return $class->SUPER::_new(%params);
44 }
45  
46  
47  
48  
49 1;
50  
51  
52 __END__