QuoteDB/Schema.pm

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