| 1 | package ArangoDB2::Transaction; | ||
| 2 | |||
| 3 | 22 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 22 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 22 | ▶ | use base qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | ArangoDB2::Base | ||
| 8 | 22 | ); | |
| 9 | |||
| 10 | 22 | ▶ | use Data::Dumper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 22 | ▶ | use JSON::XS; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 22 | my $JSON = JSON::XS->new->utf8; | |
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | # action | ||
| 18 | # | ||
| 19 | # get/set action | ||
| 20 | 0 | ▶ | sub action { shift->_get_set('action', @_) } |
|
Subroutine
action: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | |||
| 22 | # collections | ||
| 23 | # | ||
| 24 | # get/set collections | ||
| 25 | 0 | ▶ | sub collections { shift->_get_set('collections', @_) } |
|
Subroutine
collections: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | |||
| 27 | sub execute | ||
| 28 | 0 | ▶ | { |
|
Subroutine
execute: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | 0 | my($self, $args) = @_; | |
| 30 | # process args | ||
| 31 | 0 | $args = $self->_build_args($args, [qw( | |
| 32 | action collections lockTimeout params waitForSync | ||
| 33 | )]); | ||
| 34 | |||
| 35 | 0 | return $self->arango->http->post( | |
| 36 | $self->api_path('transaction'), | ||
| 37 | undef, | ||
| 38 | $JSON->encode($args), | ||
| 39 | ); | ||
| 40 | } | ||
| 41 | |||
| 42 | # lockTimeout | ||
| 43 | # | ||
| 44 | # get/set lockTimeout | ||
| 45 | 0 | ▶ | sub lockTimeout { shift->_get_set('lockTimeout', @_) } |
|
Subroutine
lockTimeout: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 46 | |||
| 47 | # params | ||
| 48 | # | ||
| 49 | # get/set params | ||
| 50 | 0 | ▶ | sub params { shift->_get_set('params', @_) } |
|
Subroutine
params: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 51 | |||
| 52 | # waitForSync | ||
| 53 | # | ||
| 54 | # get/set waitForSync value | ||
| 55 | 0 | ▶ | sub waitForSync { shift->_get_set_bool('waitForSync', @_) } |
|
Subroutine
waitForSync: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 56 | |||
| 57 | 22 | 1; | |
| 58 | |||
| 59 | __END__ | ||