line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::KeePass::KDBX::Tie::CustomData; |
2
|
|
|
|
|
|
|
# ABSTRACT: Database custom data |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
925
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
56
|
|
5
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
35
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
8
|
use parent 'File::KeePass::KDBX::Tie::Hash'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
8
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.902'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub keys { |
12
|
14
|
|
|
14
|
0
|
29
|
my $self = shift; |
13
|
14
|
|
|
|
|
74
|
my ($kdbx) = @$self; |
14
|
14
|
50
|
|
|
|
67
|
return [keys %{$kdbx->meta->{custom_data} || {}}]; |
|
14
|
|
|
|
|
36
|
|
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__ |