SQL/Amazon/Tables/CustomerReviews.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #
2 # Copyright (c) 2005, Presicient Corp., USA
3 #
4 # Permission is granted to use this software according to the terms of the
5 # Artistic License, as specified in the Perl README file,
6 # with the exception that commercial redistribution, either
7 # electronic or via physical media, as either a standalone package,
8 # or incorporated into a third party product, requires prior
9 # written approval of the author.
10 #
11 # This software is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 #
15 # Presicient Corp. reserves the right to provide support for this software
16 # to individual sites under a separate (possibly fee-based)
17 # agreement.
18 #
19 # History:
20 #
21 # 2005-Jan-27 D. Arnold
22 # Coded.
23 #
24 =pod
25  
26 =head4 CustomerReviews (table, readonly)
27  
28 Product reviews provided by customers
29  
30 =over 4
31  
32 =item ASIN
33  
34 =item Content
35  
36 =item ReviewDate
37  
38 =item HelpfulVotes
39  
40 =item Rating
41  
42 =item Summary
43  
44 =item TotalVotes
45  
46 =back
47  
48 =cut
49  
50 package SQL::Amazon::Tables::CustomerReviews;
51  
52 use DBI qw(:sql_types);
53 use base qw(SQL::Amazon::Tables::Table);
54  
55 use strict;
56  
57 our %metadata = (
58 NAME => [
59 qw/ASIN
60 CustomerId
61 ReviewDate
62 Rating
63 Content
64 Summary
65 HelpfulVotes
66 TotalVotes/
67 ],
68 TYPE => [
69 SQL_VARCHAR,
70 SQL_VARCHAR,
71 SQL_DATE,
72 SQL_FLOAT,
73 SQL_VARCHAR,
74 SQL_VARCHAR,
75 SQL_INTEGER,
76 SQL_INTEGER,
77 ],
78 PRECISION => [
79 32,
80 32,
81 10,
82 24,
83 1024,
84 256,
85 10,
86 10,
87 ],
88 SCALE => [
89 undef,
90 undef,
91 undef,
92 undef,
93 undef,
94 undef,
95 undef,
96 undef,
97 ],
98 NULLABLE => [
99 undef,
100 undef,
101 1,
102 1,
103 undef,
104 1,
105 1,
106 1,
107 ]
108 );
109  
110 sub new {
111 my $class = shift;
112 my $obj = $class->SUPER::new(\%metadata);
113 $obj->{_key_cols} = [ 0, 1];
114 return $obj;
115 }
116  
117 1;
118