| 1 | package PawsX::DynamoDB::DocumentClient::Scan; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use 5.008_005; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 0 | ▶ | use aliased 'PawsX::DynamoDB::DocumentClient::QueryOrScan'; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 7 | |||
| 8 | use PawsX::DynamoDB::DocumentClient::Util qw( | ||
| 9 | make_arg_transformer | ||
| 10 | ); | ||
| 11 | |||
| 12 | my $arg_transformer = make_arg_transformer( | ||
| 13 | method_name => 'scan', | ||
| 14 | to_marshall => QueryOrScan->to_marshall, | ||
| 15 | ); | ||
| 16 | |||
| 17 | sub transform_arguments { | ||
| 18 | my $class = shift; | ||
| 19 | my %args = @_; | ||
| 20 | my $force_type = delete $args{force_type}; | ||
| 21 | return map | ||
| 22 | { | ||
| 23 | $_ => $arg_transformer->($_, $args{$_}, $force_type) | ||
| 24 | } | ||
| 25 | keys %args; | ||
| 26 | } | ||
| 27 | |||
| 28 | sub transform_output { | ||
| 29 | my $class = shift; | ||
| 30 | return QueryOrScan->transform_output(@_); | ||
| 31 | } | ||
| 32 | |||
| 33 | sub run_service_command { | ||
| 34 | my ($class, $service, %args) = @_; | ||
| 35 | return $service->Scan(%args); | ||
| 36 | } | ||
| 37 | |||
| 38 | 1; | ||
| 39 | __END__ | ||