line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tree::Persist::DB; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
23
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
116
|
|
4
|
4
|
|
|
4
|
|
18
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
129
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
18
|
use base qw( Tree::Persist::Base ); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
1722
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.12'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# ---------------------------------------------- |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub _init |
13
|
|
|
|
|
|
|
{ |
14
|
10
|
|
|
10
|
|
14
|
my($class) = shift; |
15
|
10
|
|
|
|
|
12
|
my($opts) = @_; |
16
|
10
|
|
|
|
|
39
|
my($self) = $class -> SUPER::_init( $opts ); |
17
|
10
|
|
|
|
|
17
|
$self->{_dbh} = $opts->{dbh}; |
18
|
10
|
|
|
|
|
16
|
$self->{_table} = $opts->{table}; |
19
|
|
|
|
|
|
|
|
20
|
10
|
|
|
|
|
17
|
return $self; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
} # End of _init. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# ---------------------------------------------- |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |