line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::PostgreSQL::RowDescription; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
5
|
|
|
5
|
|
15861
|
$Protocol::PostgreSQL::RowDescription::VERSION = '0.008'; |
4
|
|
|
|
|
|
|
} |
5
|
5
|
|
|
5
|
|
156
|
use strict; |
|
5
|
|
|
|
|
1371
|
|
|
5
|
|
|
|
|
212
|
|
6
|
5
|
|
|
5
|
|
29
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
189
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Protocol::PostgreSQL::RowDescription - row definitions |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
version 0.008 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=cut |
21
|
|
|
|
|
|
|
|
22
|
5
|
|
|
5
|
|
6789
|
use Protocol::PostgreSQL::FieldDescription; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
972
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 METHODS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
2
|
0
|
13
|
sub new { bless {}, shift } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 field_count |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Returns the current field count. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=cut |
35
|
|
|
|
|
|
|
|
36
|
2
|
|
|
2
|
1
|
10
|
sub field_count { shift->{field_count} } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 add_field |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Add a new field to the list. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub add_field { |
45
|
3
|
|
|
3
|
1
|
5
|
my $self = shift; |
46
|
3
|
|
|
|
|
5
|
my $field = shift; |
47
|
3
|
|
|
|
|
9
|
++$self->{field_count}; |
48
|
3
|
|
|
|
|
3
|
push @{$self->{field}}, $field; |
|
3
|
|
|
|
|
9
|
|
49
|
3
|
|
|
|
|
8
|
return $self; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub field_index { |
53
|
6
|
|
|
6
|
0
|
13
|
my $self = shift; |
54
|
6
|
|
|
|
|
9
|
my $idx = shift; |
55
|
6
|
|
|
|
|
22
|
return $self->{field}->[$idx]; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
__END__ |