QuoteDB/Schema/Symbol.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/Quote.pm ↑ Summary
1 package Finance::QuoteDB::Schema::Symbol;
2 1 ▶use base qw/DBIx::Class/;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 __PACKAGE__->load_components(qw/ PK::Auto Core /);
8 1 __PACKAGE__->table('symbol');
9 1 __PACKAGE__->add_columns ( symbolID=> { data_type=>'varchar',
10 size=>20,
11 is_nullable=>0,
12 is_auto_increment=>0,
13 default_value=>''
14 },
15 fqmarket=> { data_type=>'integer',
16 is_nullable=>1,
17 is_auto_increment=>0,
18 default_value=>0
19 },
20 fqsymbol=> { data_type=>'varchar',
21 size=>20,
22 is_nullable=>0,
23 is_auto_increment=>0,
24 default_value=>''
25 },
26 fqfailover=> { data_type=>'boolean', # will failover be applied to this datasource ?
27 default_value=>'FALSE'
28 },
29 name=> { data_type=>'varchar',
30 size=>40,
31 is_nullable=>1,
32 is_auto_increment=>0,
33 default_value=>''
34 },
35 isin=> { data_type=>'varchar',
36 size=>12,
37 is_nullable=>1,
38 is_auto_increment=>0,
39 default_value=>''
40 },
41 currency=> { data_type=>'varchar',
42 size=>4,
43 is_nullable=>1,
44 is_auto_increment=>0,
45 default_value=>''
46 }
47 );
48  
49 1 __PACKAGE__->set_primary_key('symbolID');
50 1 __PACKAGE__->has_many('quotes'=>'Finance::QuoteDB::Schema::Quote','symbolID');
51 1 __PACKAGE__->belongs_to('fqmarket'=>'Finance::QuoteDB::Schema::FQMarket');
52  
53 =head1 COPYRIGHT & LICENSE
54  
55 Copyright 2008-2011 Erik Colson, all rights reserved.
56  
57 This file is part of Finance::QuoteDB.
58  
59 Finance::QuoteDB is free software: you can redistribute it and/or
60 modify it under the terms of the GNU General Public License as
61 published by the Free Software Foundation, either version 3 of the
62 License, or (at your option) any later version.
63  
64 Finance::QuoteDB is distributed in the hope that it will be useful,
65 but WITHOUT ANY WARRANTY; without even the implied warranty of
66 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
67 General Public License for more details.
68  
69 You should have received a copy of the GNU General Public License
70 along with Finance::QuoteDB. If not, see
71 <http://www.gnu.org/licenses/>.
72  
73 =cut
74  
75 1 1;
« QuoteDB/Schema/Quote.pm ↑ Summary