line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PawsX::DynamoDB::DocumentClient::Delete; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
838
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
26
|
use 5.008_005; |
|
1
|
|
|
|
|
3
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use PawsX::DynamoDB::DocumentClient::Util qw(make_arg_transformer unmarshal_attribute_map); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
184
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my $arg_transformer = make_arg_transformer( |
9
|
|
|
|
|
|
|
method_name => 'delete', |
10
|
|
|
|
|
|
|
to_marshall => ['ExpressionAttributeValues', 'Key'], |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub transform_arguments { |
14
|
4
|
|
|
4
|
0
|
1611
|
my $class = shift; |
15
|
4
|
|
|
|
|
17
|
my %args = @_; |
16
|
4
|
|
|
|
|
12
|
my $force_type = delete $args{force_type}; |
17
|
|
|
|
|
|
|
return map |
18
|
|
|
|
|
|
|
{ |
19
|
4
|
|
|
|
|
12
|
$_ => $arg_transformer->($_, $args{$_}, $force_type) |
|
8
|
|
|
|
|
289
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
keys %args; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub transform_output { |
25
|
2
|
|
|
2
|
0
|
2543
|
my ($class, $output) = @_; |
26
|
2
|
|
|
|
|
63
|
my $attributes = $output->Attributes; |
27
|
2
|
100
|
|
|
|
88
|
return undef unless $attributes; |
28
|
1
|
|
|
|
|
6
|
return unmarshal_attribute_map($attributes); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub run_service_command { |
32
|
0
|
|
|
0
|
0
|
|
my ($class, $service, %args) = @_; |
33
|
0
|
|
|
|
|
|
return $service->DeleteItem(%args); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |