aerospike 5.7.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/aerospike-client-c.ini +1 -1
- package/aerospike-client-c.sha256 +1 -1
- package/binding.gyp +2 -0
- package/lib/aerospike.js +8 -0
- package/lib/bin.js +59 -0
- package/lib/binding/node-v108-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/node-v108-darwin-x64/aerospike.node +0 -0
- package/lib/binding/node-v108-win32-x64/aerospike.dll +0 -0
- package/lib/binding/node-v108-win32-x64/aerospike.node +0 -0
- package/lib/binding/node-v108-win32-x64/event_core.dll +0 -0
- package/lib/binding/node-v108-win32-x64/getopt.dll +0 -0
- package/lib/binding/node-v108-win32-x64/libeay32.dll +0 -0
- package/lib/binding/node-v108-win32-x64/pthreadVC2.dll +0 -0
- package/lib/binding/node-v108-win32-x64/ssleay32.dll +0 -0
- package/lib/binding/node-v108-win32-x64/zlib.dll +0 -0
- package/lib/binding/node-v115-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/node-v115-darwin-x64/aerospike.node +0 -0
- package/lib/binding/node-v115-win32-x64/aerospike.dll +0 -0
- package/lib/binding/node-v115-win32-x64/aerospike.node +0 -0
- package/lib/binding/node-v115-win32-x64/event_core.dll +0 -0
- package/lib/binding/node-v115-win32-x64/getopt.dll +0 -0
- package/lib/binding/node-v115-win32-x64/libeay32.dll +0 -0
- package/lib/binding/node-v115-win32-x64/pthreadVC2.dll +0 -0
- package/lib/binding/node-v115-win32-x64/ssleay32.dll +0 -0
- package/lib/binding/node-v115-win32-x64/zlib.dll +0 -0
- package/lib/binding/openssl@1/node-v108-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v108-linux-x64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v115-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v115-linux-x64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v108-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v108-linux-x64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v115-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v115-linux-x64/aerospike.node +0 -0
- package/lib/client.js +369 -197
- package/lib/config.js +36 -0
- package/lib/error.js +5 -4
- package/lib/exp.js +97 -1
- package/lib/exp_lists.js +22 -22
- package/lib/exp_maps.js +52 -36
- package/lib/exp_operations.js +7 -1
- package/lib/filter.js +4 -0
- package/lib/maps.js +51 -0
- package/package.json +6 -3
- package/scripts/build-c-client.sh-cclient-output.log +241 -253
- package/scripts/build-package.ps1 +5 -4
- package/scripts/build-package.sh +1 -2
- package/scripts/prebuiltBinding.js +35 -54
- package/src/include/conversions.h +4 -0
- package/src/include/enums.h +3 -0
- package/src/main/aerospike.cc +2 -0
- package/src/main/async.cc +4 -11
- package/src/main/commands/batch_apply.cc +4 -4
- package/src/main/commands/batch_exists.cc +4 -4
- package/src/main/commands/batch_get.cc +4 -4
- package/src/main/commands/batch_remove.cc +7 -4
- package/src/main/commands/batch_select.cc +5 -4
- package/src/main/config.cc +11 -1
- package/src/main/enums/exp_enum.cc +1 -0
- package/src/main/enums/exp_read_flags.cc +37 -0
- package/src/main/enums/exp_write_flags.cc +41 -0
- package/src/main/enums/index.cc +1 -0
- package/src/main/expressions.cc +10 -0
- package/src/main/map_operations.cc +33 -3
- package/src/main/query.cc +18 -0
- package/src/main/util/conversions.cc +81 -14
- package/test/batch_remove.js +25 -0
- package/test/batch_write.js +22 -0
- package/test/config.js +4 -0
- package/test/exp.js +63 -3
- package/test/exp_list.js +438 -11
- package/test/exp_map.js +984 -10
- package/test/index.js +15 -0
- package/test/maps.js +53 -0
- package/test/put.js +34 -4
- package/test/query.js +71 -2
- package/test/util/options.js +2 -0
- package/typings/index.d.ts +1880 -1518
- package/lib/binding/node-v111-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/node-v111-darwin-x64/aerospike.node +0 -0
- package/lib/binding/node-v93-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/node-v93-darwin-x64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v111-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v111-linux-x64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v93-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v93-linux-x64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v111-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v111-linux-x64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v93-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v93-linux-x64/aerospike.node +0 -0
- package/typings/autoIndex.d.ts +0 -1709
package/README.md
CHANGED
|
@@ -11,15 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
The Aerospike Node.js client is a Node.js add-on module, written using V8.
|
|
13
13
|
|
|
14
|
-
The client is compatible with Node.js 20 (LTS)
|
|
14
|
+
The client is compatible with Node.js 20 (Upcoming LTS) and 18 (LTS).
|
|
15
15
|
It supports the following operating systems:
|
|
16
16
|
- RHEL 8/9
|
|
17
|
-
- Debian 10 (x86_64 architecture only)
|
|
18
17
|
- Debian 11
|
|
19
18
|
- Amazon Linux 2023
|
|
20
19
|
- Ubuntu 20.04/22.04 (Focal Fossa, Jammy Jellyfish)
|
|
21
20
|
- Many Linux distributions compatible with one of the above OS releases.
|
|
22
|
-
- macOS
|
|
21
|
+
- macOS 12/13
|
|
23
22
|
|
|
24
23
|
The client is compatible with arm64, aarch64, and x86_64 architectures.
|
|
25
24
|
|
|
@@ -301,7 +300,7 @@ const Aerospike = require('aerospike')
|
|
|
301
300
|
Access the client API documentation at:
|
|
302
301
|
[https://docs.aerospike.com/apidocs/nodejs](https://docs.aerospike.com/apidocs/nodejs).
|
|
303
302
|
This documentation is built from the client's source using [JSDocs
|
|
304
|
-
|
|
303
|
+
v4](https://www.npmjs.com/package/jsdoc) for every release.
|
|
305
304
|
|
|
306
305
|
The API docs also contain a few basic tutorials:
|
|
307
306
|
|
package/aerospike-client-c.ini
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
BB7AEB63571E63FD6C9CD042DC1810743DF9C8F122C91EAFB705C2E08B87733A aerospike-client-c-dependencies.1.0.2.zip
|
package/binding.gyp
CHANGED
|
@@ -145,6 +145,8 @@
|
|
|
145
145
|
'src/main/enums/exp_enum.cc',
|
|
146
146
|
'src/main/enums/batch_type.cc',
|
|
147
147
|
'src/main/enums/privilege_code.cc',
|
|
148
|
+
'src/main/enums/exp_read_flags.cc',
|
|
149
|
+
'src/main/enums/exp_write_flags.cc',
|
|
148
150
|
'src/main/stats.cc',
|
|
149
151
|
'src/main/util/conversions.cc',
|
|
150
152
|
'src/main/util/conversions_batch.cc',
|
package/lib/aerospike.js
CHANGED
|
@@ -264,6 +264,14 @@ exports.Key = require('./key')
|
|
|
264
264
|
*/
|
|
265
265
|
exports.Record = require('./record')
|
|
266
266
|
|
|
267
|
+
/**
|
|
268
|
+
* In the Aerospike database, each record (similar to a row in a relational database) stores
|
|
269
|
+
* data using one or more bins (like columns in a relational database).
|
|
270
|
+
*
|
|
271
|
+
* @summary {@link Bin} class
|
|
272
|
+
*/
|
|
273
|
+
exports.Bin = require('./bin')
|
|
274
|
+
|
|
267
275
|
// ========================================================================
|
|
268
276
|
// Enumerations
|
|
269
277
|
// ========================================================================
|
package/lib/bin.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright 2023 Aerospike, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
'use strict'
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @class Bin
|
|
21
|
+
* @classdesc Aerospike Bin
|
|
22
|
+
*
|
|
23
|
+
* In the Aerospike database, each record (similar to a row in a relational database) stores
|
|
24
|
+
* data using one or more bins (like columns in a relational database). The major difference
|
|
25
|
+
* between bins and RDBMS columns is that you don't need to define a schema. Each record can
|
|
26
|
+
* have multiple bins. Bins accept the data types listed {@link https://docs.aerospike.com/apidocs/nodejs/#toc4__anchor|here}.
|
|
27
|
+
*
|
|
28
|
+
* For information about these data types and how bins support them, see {@link https://docs.aerospike.com/server/guide/data-types/scalar-data-types|this}.
|
|
29
|
+
*
|
|
30
|
+
* Although the bin for a given record or object must be typed, bins in different rows do not
|
|
31
|
+
* have to be the same type. There are some internal performance optimizations for single-bin namespaces.
|
|
32
|
+
*
|
|
33
|
+
* @summary Construct a new Aerospike Bin instance.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
class Bin {
|
|
37
|
+
/** @private */
|
|
38
|
+
constructor (name, value, mapOrder) {
|
|
39
|
+
/**
|
|
40
|
+
* Bin name.
|
|
41
|
+
*
|
|
42
|
+
* @member {String} Bin#name
|
|
43
|
+
*/
|
|
44
|
+
this.name = name
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Bin value.
|
|
48
|
+
*
|
|
49
|
+
* @member {Any} Bin#value
|
|
50
|
+
*/
|
|
51
|
+
if (mapOrder === 1) {
|
|
52
|
+
this.value = new Map(Object.entries(value))
|
|
53
|
+
} else {
|
|
54
|
+
this.value = value
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
module.exports = Bin
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|