SQL/Amazon/Tables/Merchants.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 24 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 Merchants (table, readonly)
27  
28 =over 4
29  
30 =item MerchantID - primary key (US only, SellerID in other locales)
31  
32 =item Name - Merchant/Seller name
33  
34 =item Nickname - Merchant/Seller nickname
35  
36 =item GlancePage - URL of page with seller info
37  
38 =item About - brief info regarding seller
39  
40 =item MoreAbout - extended info regarding seller
41  
42 =item Location - geographic info (variable format)
43  
44 =item AvgFeedback - Average feed back rating
45  
46 =item TotalFeedback - number of customers who provided feedback
47  
48 =back
49  
50 =cut
51  
52 package SQL::Amazon::Tables::Merchants;
53  
54 use DBI qw(:sql_types);
55 use base qw(SQL::Amazon::Tables::Table);
56 use strict;
57  
58 our %metadata = (
59 NAME => [
60 qw/MerchantID Name Nickname GlancePage About MoreAbout
61 Location AvgFeedback TotalFeedback/
62 ],
63 TYPE => [
64 SQL_VARCHAR,
65 SQL_VARCHAR,
66 SQL_VARCHAR,
67 SQL_VARCHAR,
68 SQL_VARCHAR,
69 SQL_VARCHAR,
70 SQL_VARCHAR,
71 SQL_FLOAT,
72 SQL_INTEGER,
73 ],
74 PRECISION => [
75 32,
76 256,
77 256,
78 256,
79 1024,
80 1024,
81 256,
82 24,
83 10,
84 ],
85 SCALE => [
86 undef,
87 undef,
88 undef,
89 undef,
90 undef,
91 undef,
92 undef,
93 undef,
94 undef,
95 ],
96 NULLABLE => [
97 undef,
98 1,
99 1,
100 1,
101 1,
102 1,
103 1,
104 1,
105 1,
106 ]
107 );
108  
109 sub new {
110 my $class = shift;
111 my $obj = $class->SUPER::new(\%metadata);
112 $obj->{_key_cols} = [ 0 ];
113 return $obj;
114 }
115  
116 1;
117