line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#---------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
package DBIx::DataModel::Schema::ResultAs::Table; |
3
|
|
|
|
|
|
|
#---------------------------------------------------------------------- |
4
|
1
|
|
|
1
|
|
615
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
23
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
4
|
use parent 'DBIx::DataModel::Schema::ResultAs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub get_result { |
10
|
1
|
|
|
1
|
1
|
4
|
my ($self, $statement) = @_; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
4
|
$statement->execute; |
13
|
1
|
|
|
|
|
8
|
$statement->make_fast; |
14
|
1
|
|
|
|
|
4
|
my @headers = $statement->headers; |
15
|
1
|
|
|
|
|
25
|
my @vals = (\@headers); |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
5
|
while (my $row = $statement->next) { |
18
|
3
|
|
|
|
|
5
|
push @vals, [@{$row}{@headers}]; |
|
3
|
|
|
|
|
13
|
|
19
|
|
|
|
|
|
|
} |
20
|
1
|
|
|
|
|
6
|
$statement->finish; |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
|
|
43
|
return \@vals; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |