line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package GrowthForecast::Aggregator::Declare; |
2
|
1
|
|
|
1
|
|
792
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
4
|
1
|
|
|
1
|
|
34
|
use 5.008001; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
51
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.1.1'; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
846
|
use parent qw(Exporter); |
|
1
|
|
|
|
|
307
|
|
|
1
|
|
|
|
|
5
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
517
|
use GrowthForecast::Aggregator::DB; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
103
|
|
10
|
1
|
|
|
1
|
|
1546
|
use GrowthForecast::Aggregator::DBMulti; |
|
1
|
|
|
|
|
24
|
|
|
1
|
|
|
|
|
37
|
|
11
|
1
|
|
|
1
|
|
959
|
use GrowthForecast::Aggregator::Callback; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
281
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our @EXPORT = qw(gf section db db_multi callback); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our $_SECTION; |
16
|
|
|
|
|
|
|
our @_QUERIES; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub gf(&) { |
19
|
0
|
|
|
0
|
1
|
|
local @_QUERIES; |
20
|
0
|
|
|
|
|
|
$_[0]->(); |
21
|
0
|
|
|
|
|
|
return @_QUERIES; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub section($&) { |
25
|
0
|
|
|
0
|
1
|
|
local $_SECTION = shift; |
26
|
0
|
|
|
|
|
|
$_[0]->(); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub db { |
30
|
0
|
|
|
0
|
1
|
|
push @_QUERIES, GrowthForecast::Aggregator::DB->new( |
31
|
|
|
|
|
|
|
section => $_SECTION, |
32
|
|
|
|
|
|
|
@_, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub db_multi { |
37
|
0
|
|
|
0
|
1
|
|
push @_QUERIES, GrowthForecast::Aggregator::DBMulti->new( |
38
|
|
|
|
|
|
|
section => $_SECTION, |
39
|
|
|
|
|
|
|
@_, |
40
|
|
|
|
|
|
|
); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub callback { |
44
|
0
|
|
|
0
|
1
|
|
push @_QUERIES, GrowthForecast::Aggregator::Callback->new( |
45
|
|
|
|
|
|
|
section => $_SECTION, |
46
|
|
|
|
|
|
|
@_, |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |
51
|
|
|
|
|
|
|
__END__ |