SQL/Amazon/Tables/BrowseNodes.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 BrowseNodes (table, readonly)
27  
28 Product category BrowseNodes, keyed by ASIN
29  
30 =over 4
31  
32 =back
33  
34 =cut
35  
36 package SQL::Amazon::Tables::BrowseNodes;
37  
38 use DBI qw(:sql_types);
39 use base qw(SQL::Amazon::Tables::Table);
40  
41 use strict;
42  
43 our %metadata = (
44 NAME => [ qw/ASIN BrowseNodeID Name/],
45 TYPE => [
46 SQL_VARCHAR,
47 SQL_VARCHAR,
48 SQL_VARCHAR
49 ],
50 PRECISION => [
51 32,
52 32,
53 256
54 ],
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