| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package ArangoDB::Constants; |
|
2
|
8
|
|
|
8
|
|
47
|
use strict; |
|
|
8
|
|
|
|
|
16
|
|
|
|
8
|
|
|
|
|
287
|
|
|
3
|
8
|
|
|
8
|
|
43
|
use warnings; |
|
|
8
|
|
|
|
|
15
|
|
|
|
8
|
|
|
|
|
211
|
|
|
4
|
8
|
|
|
8
|
|
42
|
use utf8; |
|
|
8
|
|
|
|
|
13
|
|
|
|
8
|
|
|
|
|
45
|
|
|
5
|
8
|
|
|
8
|
|
421
|
use 5.008001; |
|
|
8
|
|
|
|
|
29
|
|
|
|
8
|
|
|
|
|
405
|
|
|
6
|
8
|
|
|
8
|
|
10240
|
use parent qw(Exporter); |
|
|
8
|
|
|
|
|
5596
|
|
|
|
8
|
|
|
|
|
56
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my @options = qw(OPTION_ENDPOINT OPTION_HOST OPTION_PORT OPTION_PILICY OPTION_WAIT_SYNC OPTION_AUTH_USER |
|
9
|
|
|
|
|
|
|
OPTION_AUTH_PASSWD OPTION_AUTH_TYPE OPTION_CONNECTION); |
|
10
|
|
|
|
|
|
|
my @policies = qw(POLICY_LAST PILICY_ERROR); |
|
11
|
|
|
|
|
|
|
my @api = qw(API_DOCUMENT API_COLLECTION API_CURSOR API_EXAMPLE API_EDGE API_QUERY API_SIMPLE_ALL API_SIMPLE_EXAMPLE |
|
12
|
|
|
|
|
|
|
API_SIMPLE_FIRST API_SIMPLE_RANGE API_SIMPLE_NEAR API_SIMPLE_WITHIN API_INDEX API_IMPORT API_EDGES API_EXPLAIN |
|
13
|
|
|
|
|
|
|
API_KEY API_KEYS); |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my @status = qw(NEWBORN UNLOADED LOADED BEING_UNLOADED DELETED CORRUPTED); |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our @EXPORT_OK = ( @options, @policies, @api, @status ); |
|
18
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
|
19
|
|
|
|
|
|
|
all => \@EXPORT_OK, |
|
20
|
|
|
|
|
|
|
option => \@options, |
|
21
|
|
|
|
|
|
|
policy => \@policies, |
|
22
|
|
|
|
|
|
|
api => \@api, |
|
23
|
|
|
|
|
|
|
status => \@status, |
|
24
|
|
|
|
|
|
|
); |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Options |
|
27
|
|
|
|
|
|
|
use constant { |
|
28
|
8
|
|
|
|
|
1958
|
OPTION_HOST => 'host', |
|
29
|
|
|
|
|
|
|
OPTION_PORT => 'port', |
|
30
|
|
|
|
|
|
|
OPTION_TIMEOUT => 'timeout', |
|
31
|
|
|
|
|
|
|
OPTION_PILICY => 'policy', |
|
32
|
|
|
|
|
|
|
OPTION_WAIT_SYNC => 'wait_for_sysnc', |
|
33
|
|
|
|
|
|
|
OPTION_AUTH_USER => 'auth_user', |
|
34
|
|
|
|
|
|
|
OPTION_AUTH_PASSWD => 'auth_passwd', |
|
35
|
|
|
|
|
|
|
OPTION_AUTH_TYPE => 'auth_type', |
|
36
|
|
|
|
|
|
|
OPTION_CONNECTION => 'connection', |
|
37
|
8
|
|
|
8
|
|
1976
|
}; |
|
|
8
|
|
|
|
|
18
|
|
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# Update policies |
|
40
|
|
|
|
|
|
|
use constant { |
|
41
|
8
|
|
|
|
|
1651
|
POLICY_LAST => 'last', |
|
42
|
|
|
|
|
|
|
PILICY_ERROR => 'error', |
|
43
|
8
|
|
|
8
|
|
45
|
}; |
|
|
8
|
|
|
|
|
14
|
|
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
# API |
|
46
|
|
|
|
|
|
|
use constant { |
|
47
|
8
|
|
|
|
|
2322
|
API_DOCUMENT => '/_api/document', |
|
48
|
|
|
|
|
|
|
API_COLLECTION => '/_api/collection', |
|
49
|
|
|
|
|
|
|
API_CURSOR => '/_api/cursor', |
|
50
|
|
|
|
|
|
|
API_EDGE => '/_api/edge', |
|
51
|
|
|
|
|
|
|
API_EDGES => '/_api/edges', |
|
52
|
|
|
|
|
|
|
API_KEY => '/_api/key/', |
|
53
|
|
|
|
|
|
|
API_KEYS => '/_api/keys/', |
|
54
|
|
|
|
|
|
|
API_EXAMPLE => '/_api/simple/by-example', |
|
55
|
|
|
|
|
|
|
API_QUERY => '/_api/query', |
|
56
|
|
|
|
|
|
|
API_EXPLAIN => '/_api/explain', |
|
57
|
|
|
|
|
|
|
API_INDEX => '/_api/index', |
|
58
|
|
|
|
|
|
|
API_IMPORT => '/_api/import', |
|
59
|
|
|
|
|
|
|
API_SIMPLE_ALL => '/_api/simple/all', |
|
60
|
|
|
|
|
|
|
API_SIMPLE_EXAMPLE => '/_api/simple/by-example', |
|
61
|
|
|
|
|
|
|
API_SIMPLE_FIRST => '/_api/simple/first-example', |
|
62
|
|
|
|
|
|
|
API_SIMPLE_RANGE => '/_api/simple/range', |
|
63
|
|
|
|
|
|
|
API_SIMPLE_NEAR => '/_api/simple/near', |
|
64
|
|
|
|
|
|
|
API_SIMPLE_WITHIN => '/_api/simple/within', |
|
65
|
|
|
|
|
|
|
|
|
66
|
8
|
|
|
8
|
|
49
|
}; |
|
|
8
|
|
|
|
|
18
|
|
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
use constant { |
|
69
|
8
|
|
|
|
|
901
|
NEWBORN => 1, |
|
70
|
|
|
|
|
|
|
UNLOADED => 2, |
|
71
|
|
|
|
|
|
|
LOADED => 3, |
|
72
|
|
|
|
|
|
|
BEING_UNLOADED => 4, |
|
73
|
|
|
|
|
|
|
DELETED => 5, |
|
74
|
|
|
|
|
|
|
CORRUPTED => 6, |
|
75
|
8
|
|
|
8
|
|
49
|
}; |
|
|
8
|
|
|
|
|
15
|
|
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |
|
78
|
|
|
|
|
|
|
__END__ |