SQL/Amazon/Tables/ListManiaLists.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 ListManiaLists (table, readonly)
27  
28 ListMania lists keyed by ASIN and ListId
29 (note: this ain't 3NF!!!)
30  
31 =over 4
32  
33 =item ASIN
34  
35 =item ListId
36  
37 =item ListName
38  
39 =back
40  
41 =cut
42  
43 package SQL::Amazon::Tables::ListManiaLists;
44  
45 use DBI qw(:sql_types);
46 use base qw(SQL::Amazon::Tables::Table);
47 use strict;
48  
49 our %metadata = (
50 NAME => [
51 qw/ASIN ListId ListName/
52 ],
53 TYPE => [ SQL_VARCHAR, SQL_VARCHAR, SQL_VARCHAR ],
54 PRECISION => [ 32, 32, 256 ],
55 SCALE => [ undef, undef, undef ],
56 NULLABLE => [ undef, undef, undef ]
57 );
58  
59 sub new {
60 my $class = shift;
61 my $obj = $class->SUPER::new(\%metadata);
62 $obj->{_key_cols} = [ 0, 1 ];
63 return $obj;
64 }
65  
66 1;
67