Keys   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 41
dl 0
loc 54
rs 10
c 0
b 0
f 0
ccs 0
cts 1
cp 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
/**
4
 * This file is part of the tarantool/client package.
5
 *
6
 * (c) Eugene Leonovich <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Tarantool\Client;
15
16
/**
17
 * @see https://www.tarantool.io/en/doc/latest/dev_guide/internals/box_protocol/
18
 * @see https://github.com/tarantool/tarantool/blob/master/src/box/iproto_constants.h
19
 */
20
final class Keys
21
{
22
    public const CODE = 0x00;
23
    public const SYNC = 0x01;
24
    public const SCHEMA_ID = 0x05;
25
    public const SPACE_ID = 0x10;
26
    public const INDEX_ID = 0x11;
27
    public const LIMIT = 0x12;
28
    public const OFFSET = 0x13;
29
    public const ITERATOR = 0x14;
30
    public const KEY = 0x20;
31
    public const TUPLE = 0x21;
32
    public const FUNCTION_NAME = 0x22;
33
    public const USER_NAME = 0x23;
34
    public const EXPR = 0x27;
35
    public const OPERATIONS = 0x28;
36
    public const DATA = 0x30;
37
    public const ERROR_24 = 0x31;
38
    public const METADATA = 0x32;
39
    public const BIND_METADATA = 0x33;
40
    public const BIND_COUNT = 0x34;
41
    public const SQL_TEXT = 0x40;
42
    public const SQL_BIND = 0x41;
43
    public const SQL_INFO = 0x42;
44
    public const STMT_ID = 0x43;
45
    public const ERROR = 0x52;
46
47
    // Sql info map keys
48
    // https://github.com/tarantool/tarantool/blob/master/src/box/execute.h
49
    public const SQL_INFO_ROW_COUNT = 0;
50
    public const SQL_INFO_AUTO_INCREMENT_IDS = 1;
51
52
    // Metadata map keys
53
    // https://github.com/tarantool/tarantool/blob/master/src/box/iproto_constants.h
54
    public const METADATA_FIELD_NAME = 0;
55
    public const METADATA_FIELD_TYPE = 1;
56
    public const METADATA_FIELD_COLL = 2;
57
    public const METADATA_FIELD_IS_NULLABLE = 3;
58
    public const METADATA_FIELD_IS_AUTOINCREMENT = 4;
59
    public const METADATA_FIELD_SPAN = 5;
60
61
    // Error map keys
62
    // https://github.com/tarantool/tarantool/blob/master/src/box/mp_error.cc
63
    public const ERROR_STACK = 0;
64
    public const ERROR_TYPE = 0;
65
    public const ERROR_FILE = 1;
66
    public const ERROR_LINE = 2;
67
    public const ERROR_MESSAGE = 3;
68
    public const ERROR_NUMBER = 4;
69
    public const ERROR_CODE = 5;
70
    public const ERROR_FIELDS = 6;
71
72
    private function __construct()
73
    {
74
    }
75
}
76