QuoteDB/Schema/Quote.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« QuoteDB/Schema/FQMarket.pm ↑ Summary QuoteDB/Schema/Symbol.pm »
1 package Finance::QuoteDB::Schema::Quote;
2 1 ▶use base qw/DBIx::Class/;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 our $VERSION = '0.17'; # VERSION
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 __PACKAGE__->load_components(qw/ PK::Auto Core /);
10 1 __PACKAGE__->table('quote');
11 1 __PACKAGE__->add_columns ( symbolID=> { data_type=>'varchar',
12 size=>20,
13 is_nullable=>0,
14 is_auto_increment=>0,
15 default_value=>''
16 },
17 date=> { data_type=>'date',
18 is_nullable=>0,
19 is_auto_increment=>0,
20 default_value=>''
21 },
22 previous_close=> { data_type=>'float',
23 is_nullable=>1,
24 is_auto_increment=>0,
25 default_value=>0
26 },
27 day_open=> { data_type=>'float',
28 is_nullable=>1,
29 is_auto_increment=>0,
30 default_value=>0
31 },
32 day_high=> { data_type=>'float',
33 is_nullable=>1,
34 is_auto_increment=>0,
35 default_value=>0
36 },
37 day_low=> { data_type=>'float',
38 is_nullable=>1,
39 is_auto_increment=>0,
40 default_value=>0
41 },
42 day_close=> { data_type=>'float',
43 is_nullable=>1,
44 is_auto_increment=>0,
45 default_value=>0
46 },
47 bid=> { data_type=>'integer',
48 is_nullable=>1,
49 is_auto_increment=>0,
50 default_value=>0
51 },
52 ask=> { data_type=>'integer',
53 is_nullable=>1,
54 is_auto_increment=>0,
55 default_value=>0
56 },
57 volume=> { data_type=>'integer',
58 is_nullable=>1,
59 is_auto_increment=>0,
60 default_value=>0
61 }
62 );
63  
64 1 __PACKAGE__->set_primary_key(qw / symbolID date /);
65 1 __PACKAGE__->belongs_to('symbolID'=>'Finance::QuoteDB::Schema::Symbol');
66  
67 =head1 COPYRIGHT & LICENSE
68  
69 Copyright 2008-2011 Erik Colson, all rights reserved.
70  
71 This file is part of Finance::QuoteDB.
72  
73 Finance::QuoteDB is free software: you can redistribute it and/or
74 modify it under the terms of the GNU General Public License as
75 published by the Free Software Foundation, either version 3 of the
76 License, or (at your option) any later version.
77  
78 Finance::QuoteDB is distributed in the hope that it will be useful,
79 but WITHOUT ANY WARRANTY; without even the implied warranty of
80 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
81 General Public License for more details.
82  
83 You should have received a copy of the GNU General Public License
84 along with Finance::QuoteDB. If not, see
85 <http://www.gnu.org/licenses/>.
86  
87 =cut
88  
89 1 1;
« QuoteDB/Schema/FQMarket.pm ↑ Summary QuoteDB/Schema/Symbol.pm »