-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
33 lines (32 loc) · 1.06 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var addon = require('./lib/addon');
module.exports = {
Client: require('./lib/client'),
set_log_callback: addon.set_log_callback,
set_log_level: addon.set_log_level,
types: {
CASS_VALUE_TYPE_UNKNOWN: 0xFFFF,
CASS_VALUE_TYPE_CUSTOM: 0x0000,
CASS_VALUE_TYPE_ASCII: 0x0001,
CASS_VALUE_TYPE_BIGINT: 0x0002,
CASS_VALUE_TYPE_BLOB: 0x0003,
CASS_VALUE_TYPE_BOOLEAN: 0x0004,
CASS_VALUE_TYPE_COUNTER: 0x0005,
CASS_VALUE_TYPE_DECIMAL: 0x0006,
CASS_VALUE_TYPE_DOUBLE: 0x0007,
CASS_VALUE_TYPE_FLOAT: 0x0008,
CASS_VALUE_TYPE_INT: 0x0009,
CASS_VALUE_TYPE_TEXT: 0x000A,
CASS_VALUE_TYPE_TIMESTAMP: 0x000B,
CASS_VALUE_TYPE_UUID: 0x000C,
CASS_VALUE_TYPE_VARCHAR: 0x000D,
CASS_VALUE_TYPE_VARINT: 0x000E,
CASS_VALUE_TYPE_TIMEUUID: 0x000F,
CASS_VALUE_TYPE_INET: 0x0010,
CASS_VALUE_TYPE_LIST: 0x0020,
CASS_VALUE_TYPE_MAP: 0x0021,
CASS_VALUE_TYPE_SET: 0x0022
},
encodings: {
BIGINT_AS_OBJECT: 0x01 << 16
}
};