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