QuoteDB/Schema.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 75.0% 15 / 20 CC 1 SCAR 2.2
CC
1
Cov
73%
connect_and_deploy
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« QuoteDB.pm ↑ Summary QuoteDB/Schema/FQMarket.pm »
1 package Finance::QuoteDB::Schema;
2 1 ▶use base qw/DBIx::Class::Schema/;
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_classes(qw/ Symbol Quote FQMarket /);
8  
9 =head1 METHODS
10  
11 =head2 connect_and_deploy
12  
13 connect_and_deploy($dsn)
14  
15 Connects to $dsn and (re)generates the database structure
16  
17 =cut
18  
19 sub connect_and_deploy {
20 0 ▶ my ($class,$dsn,$user,$password) = @_;
Subroutine connect_and_deploy: not called CC=1 SCAR=6.9
Pod documented
21 0 my $self=$class->connect($dsn,$user,$password);
22 0 $self->deploy({ add_drop_tables => 1});
23 0 return $self;
24 } ;
25  
26 =head1 COPYRIGHT & LICENSE
27  
28 Copyright 2008-2011 Erik Colson, all rights reserved.
29  
30 This file is part of Finance::QuoteDB.
31  
32 Finance::QuoteDB is free software: you can redistribute it and/or
33 modify it under the terms of the GNU General Public License as
34 published by the Free Software Foundation, either version 3 of the
35 License, or (at your option) any later version.
36  
37 Finance::QuoteDB is distributed in the hope that it will be useful,
38 but WITHOUT ANY WARRANTY; without even the implied warranty of
39 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40 General Public License for more details.
41  
42 You should have received a copy of the GNU General Public License
43 along with Finance::QuoteDB. If not, see
44 <http://www.gnu.org/licenses/>.
45  
46 =cut
47  
48 1 1;
« QuoteDB.pm ↑ Summary QuoteDB/Schema/FQMarket.pm »