line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::KeePass::KDBX::Tie::CustomData; |
2
|
|
|
|
|
|
|
# ABSTRACT: Database custom data |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
961
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
60
|
|
5
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
39
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9
|
use parent 'File::KeePass::KDBX::Tie::Hash'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
9
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.901'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub keys { |
12
|
14
|
|
|
14
|
0
|
28
|
my $self = shift; |
13
|
14
|
|
|
|
|
106
|
my ($kdbx) = @$self; |
14
|
14
|
50
|
|
|
|
89
|
return [keys %{$kdbx->meta->{custom_data} || {}}]; |
|
14
|
|
|
|
|
41
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
0
|
0
|
|
sub default_getter { my $key = $_[1]; sub { $_[0]->meta->{custom_data}{$key}{value} } } |
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
|
sub default_setter { my $key = $_[1]; sub { $_[0]->meta->{custom_data}{$key}{value} = $_ } } |
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |