QuoteDB/Schema/Symbol.pm

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