aerospike 5.3.0 → 5.5.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 +5 -3
- package/benchmarks/alerts.js +1 -1
- package/benchmarks/inspect.js +1 -1
- package/benchmarks/logging.js +1 -1
- package/benchmarks/main.js +1 -1
- package/benchmarks/memory.js +1 -1
- package/benchmarks/stats.js +1 -1
- package/benchmarks/worker.js +1 -1
- package/binding.gyp +2 -0
- package/examples/add.js +1 -1
- package/examples/append.js +1 -1
- package/examples/apply.js +1 -1
- package/examples/batch.js +1 -1
- package/examples/exists.js +1 -1
- package/examples/geospatialMonteCarlo.js +1 -1
- package/examples/get.js +1 -1
- package/examples/info.js +1 -1
- package/examples/operate.js +1 -1
- package/examples/put.js +1 -1
- package/examples/query.js +1 -1
- package/examples/remove.js +1 -1
- package/examples/run.js +1 -1
- package/examples/scan.js +1 -1
- package/examples/shared/cli.js +1 -1
- package/examples/shared/client.js +1 -1
- package/examples/shared/index.js +1 -1
- package/examples/shared/run.js +1 -1
- package/examples/sindex.js +1 -1
- package/examples/udf.js +1 -1
- package/lib/aerospike.js +1 -1
- package/lib/batch_type.js +1 -1
- package/lib/bigint.js +1 -1
- package/lib/binding/openssl@1/node-v108-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v108-darwin-x64/aerospike.node +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-v111-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v111-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-v115-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v115-darwin-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@1/node-v93-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v93-darwin-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-v108-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v108-darwin-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-v111-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v111-darwin-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-v115-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v115-darwin-x64/aerospike.node +0 -0
- package/lib/binding/openssl@3/{node-v83-linux-arm64 → node-v115-linux-arm64}/aerospike.node +0 -0
- package/lib/binding/openssl@3/{node-v83-linux-x64 → node-v115-linux-x64}/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v93-darwin-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v93-darwin-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/lib/bitwise.js +1 -1
- package/lib/cdt_context.js +1 -1
- package/lib/client.js +1 -1
- package/lib/commands/batch_command.js +1 -1
- package/lib/commands/command.js +1 -1
- package/lib/commands/connect_command.js +1 -1
- package/lib/commands/exists_command.js +1 -1
- package/lib/commands/index.js +3 -1
- package/lib/commands/query_background_command.js +1 -1
- package/lib/commands/read_record_command.js +1 -1
- package/lib/commands/stream_command.js +4 -6
- package/lib/commands/write_record_command.js +1 -1
- package/lib/config.js +1 -1
- package/lib/double.js +1 -1
- package/lib/error.js +1 -1
- package/lib/event_loop.js +1 -1
- package/lib/exp.js +92 -3
- package/lib/exp_bit.js +1 -1
- package/lib/exp_hll.js +1 -1
- package/lib/exp_lists.js +1 -1
- package/lib/exp_operations.js +1 -1
- package/lib/features.js +1 -1
- package/lib/filter.js +1 -1
- package/lib/geojson.js +1 -1
- package/lib/hll.js +1 -1
- package/lib/index_job.js +1 -1
- package/lib/info.js +1 -1
- package/lib/job.js +1 -1
- package/lib/key.js +1 -1
- package/lib/lists.js +2 -1
- package/lib/maps.js +5 -2
- package/lib/policies/apply_policy.js +1 -1
- package/lib/policies/base_policy.js +1 -1
- package/lib/policies/batch_apply_policy.js +1 -1
- package/lib/policies/batch_policy.js +1 -1
- package/lib/policies/batch_read_policy.js +1 -1
- package/lib/policies/batch_remove_policy.js +1 -1
- package/lib/policies/batch_write_policy.js +1 -1
- package/lib/policies/bitwise_policy.js +1 -1
- package/lib/policies/command_queue_policy.js +1 -1
- package/lib/policies/hll_policy.js +1 -1
- package/lib/policies/info_policy.js +1 -1
- package/lib/policies/list_policy.js +1 -1
- package/lib/policies/map_policy.js +1 -1
- package/lib/policies/operate_policy.js +1 -1
- package/lib/policies/query_policy.js +1 -1
- package/lib/policies/read_policy.js +1 -1
- package/lib/policies/remove_policy.js +1 -1
- package/lib/policies/scan_policy.js +1 -1
- package/lib/policies/write_policy.js +1 -1
- package/lib/policy.js +1 -1
- package/lib/query.js +221 -24
- package/lib/record.js +1 -1
- package/lib/record_stream.js +1 -1
- package/lib/scan.js +201 -6
- package/lib/status.js +1 -1
- package/lib/typedefs.js +1 -1
- package/lib/udf_job.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +2 -2
- package/scripts/build-c-client.sh +1 -1
- package/scripts/build-commands.sh +1 -1
- package/scripts/build-package.sh +6 -6
- package/scripts/build-package.sh-cclient-output.log +132 -118
- package/scripts/os_version +1 -1
- package/scripts/prebuiltBinding.js +4 -4
- package/scripts/validate-c-client.sh +1 -1
- package/scripts/wait-for-node.sh +1 -1
- package/src/include/async.h +7 -1
- package/src/include/client.h +3 -1
- package/src/include/command.h +1 -1
- package/src/include/config.h +1 -1
- package/src/include/conversions.h +6 -1
- package/src/include/enums.h +1 -1
- package/src/include/events.h +1 -1
- package/src/include/expressions.h +1 -1
- package/src/include/log.h +1 -1
- package/src/include/operations.h +1 -1
- package/src/include/policy.h +1 -1
- package/src/include/query.h +12 -1
- package/src/include/scan.h +13 -1
- package/src/main/aerospike.cc +1 -1
- package/src/main/async.cc +120 -1
- package/src/main/bit_operations.cc +1 -1
- package/src/main/cdt_ctx.cc +1 -1
- package/src/main/client.cc +4 -2
- package/src/main/command.cc +1 -1
- package/src/main/commands/batch_apply.cc +1 -1
- package/src/main/commands/batch_exists.cc +1 -1
- package/src/main/commands/batch_get.cc +1 -1
- package/src/main/commands/batch_read_async.cc +1 -1
- package/src/main/commands/batch_remove.cc +1 -1
- package/src/main/commands/batch_select.cc +1 -1
- package/src/main/commands/batch_write_async.cc +1 -1
- package/src/main/commands/exists_async.cc +1 -1
- package/src/main/commands/get_async.cc +1 -1
- package/src/main/commands/index_create.cc +1 -1
- package/src/main/commands/index_remove.cc +1 -1
- package/src/main/commands/info_any.cc +1 -1
- package/src/main/commands/info_foreach.cc +1 -1
- package/src/main/commands/info_host.cc +1 -1
- package/src/main/commands/info_node.cc +1 -1
- package/src/main/commands/job_info.cc +1 -1
- package/src/main/commands/operate_async.cc +1 -1
- package/src/main/commands/put_async.cc +1 -1
- package/src/main/commands/query_apply.cc +1 -1
- package/src/main/commands/query_async.cc +1 -1
- package/src/main/commands/query_background.cc +1 -1
- package/src/main/commands/query_foreach.cc +1 -1
- package/src/main/commands/query_pages.cc +124 -0
- package/src/main/commands/remove_async.cc +1 -1
- package/src/main/commands/scan_async.cc +1 -1
- package/src/main/commands/scan_background.cc +1 -1
- package/src/main/commands/scan_pages.cc +127 -0
- package/src/main/commands/select_async.cc +1 -1
- package/src/main/commands/truncate.cc +1 -1
- package/src/main/commands/udf_register.cc +1 -1
- package/src/main/commands/udf_remove.cc +1 -1
- package/src/main/config.cc +2 -2
- package/src/main/enums/batch_type.cc +1 -1
- package/src/main/enums/bitwise_enum.cc +1 -1
- package/src/main/enums/config_enum.cc +1 -1
- package/src/main/enums/exp_enum.cc +1 -1
- package/src/main/enums/hll_enum.cc +1 -1
- package/src/main/enums/index.cc +1 -1
- package/src/main/enums/job_status.cc +1 -1
- package/src/main/enums/lists.cc +1 -1
- package/src/main/enums/maps.cc +4 -2
- package/src/main/enums/policy_enum.cc +1 -1
- package/src/main/enums/predicates.cc +1 -1
- package/src/main/enums/scanPriority.cc +1 -1
- package/src/main/enums/status.cc +1 -1
- package/src/main/enums/ttl.cc +1 -1
- package/src/main/enums/udf_languages.cc +1 -1
- package/src/main/events.cc +1 -1
- package/src/main/exp_operations.cc +1 -1
- package/src/main/expressions.cc +1 -1
- package/src/main/hll_operations.cc +1 -1
- package/src/main/list_operations.cc +1 -1
- package/src/main/map_operations.cc +1 -1
- package/src/main/operations.cc +1 -1
- package/src/main/policy.cc +1 -1
- package/src/main/query.cc +54 -10
- package/src/main/scalar_operations.cc +1 -1
- package/src/main/scan.cc +46 -4
- package/src/main/stats.cc +1 -1
- package/src/main/util/conversions.cc +63 -5
- package/src/main/util/conversions_batch.cc +1 -1
- package/src/main/util/log.cc +1 -1
- package/test/aerospike.js +1 -1
- package/test/apply.js +1 -1
- package/test/batch_apply.js +1 -1
- package/test/batch_exists.js +1 -1
- package/test/batch_get.js +1 -1
- package/test/batch_read.js +1 -1
- package/test/batch_remove.js +1 -1
- package/test/batch_select.js +1 -1
- package/test/batch_write.js +1 -1
- package/test/bigint.js +1 -1
- package/test/bitwise.js +1 -1
- package/test/cdt_context.js +1 -1
- package/test/client.js +1 -1
- package/test/command.js +1 -1
- package/test/command_queue.js +1 -1
- package/test/config.js +1 -1
- package/test/double.js +1 -1
- package/test/enterprise.js +1 -1
- package/test/error.js +1 -1
- package/test/exists.js +1 -1
- package/test/exp.js +42 -1
- package/test/exp_bit.js +1 -1
- package/test/exp_hll.js +1 -1
- package/test/exp_list.js +1 -1
- package/test/exp_map.js +1 -1
- package/test/generators/key.js +1 -1
- package/test/generators/metadata.js +1 -1
- package/test/generators/put.js +1 -1
- package/test/generators/record.js +1 -1
- package/test/generators/util.js +1 -1
- package/test/generators/value.js +1 -1
- package/test/geojson.js +1 -1
- package/test/get.js +2 -2
- package/test/hll.js +1 -1
- package/test/index.js +1 -1
- package/test/index_job.js +1 -1
- package/test/info.js +1 -1
- package/test/key.js +1 -1
- package/test/lists.js +1 -1
- package/test/maps.js +37 -1
- package/test/operate.js +2 -2
- package/test/policy.js +1 -1
- package/test/put.js +1 -1
- package/test/query.js +107 -1
- package/test/remove.js +1 -1
- package/test/remove_bin.js +1 -1
- package/test/scan.js +102 -1
- package/test/select.js +1 -1
- package/test/stats.js +1 -1
- package/test/stress/perfdata.js +1 -1
- package/test/stress/query.js +1 -1
- package/test/stress/scan.js +1 -1
- package/test/test_helper.js +1 -1
- package/test/truncate.js +1 -1
- package/test/udf.js +1 -1
- package/test/util/options.js +1 -1
- package/test/util/run_in_new_process.js +1 -1
- package/test/util/statefulAsyncTest.js +1 -1
- package/test/utils.js +1 -1
- package/lib/binding/openssl@1/node-v83-darwin-x64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v83-linux-arm64/aerospike.node +0 -0
- package/lib/binding/openssl@1/node-v83-linux-x64/aerospike.node +0 -0
- package/lib/binding/openssl@3/node-v83-darwin-x64/aerospike.node +0 -0
package/README.md
CHANGED
|
@@ -11,11 +11,13 @@
|
|
|
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 19, 18 (LTS), 16 (LTS)
|
|
14
|
+
The client is compatible with Node.js 20 (LTS), 19, 18 (LTS), 16 (LTS).
|
|
15
15
|
It supports the following operating systems:
|
|
16
16
|
- RHEL 8/9
|
|
17
|
-
- Debian 10
|
|
18
|
-
-
|
|
17
|
+
- Debian 10 (x86_64 architecture only)
|
|
18
|
+
- Debian 11
|
|
19
|
+
- Amazon Linux 2023
|
|
20
|
+
- Ubuntu 20.04/22.04 (Focal Fossa, Jammy Jellyfish)
|
|
19
21
|
- Many Linux distributions compatible with one of the above OS releases.
|
|
20
22
|
- macOS versions 11/12/13 are also supported. (Node.js 14 install unavailable on M1 Mac systems)
|
|
21
23
|
|
package/benchmarks/alerts.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/benchmarks/inspect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/benchmarks/logging.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/benchmarks/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/benchmarks/memory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/benchmarks/stats.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/benchmarks/worker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/binding.gyp
CHANGED
|
@@ -104,9 +104,11 @@
|
|
|
104
104
|
'src/main/commands/query_apply.cc',
|
|
105
105
|
'src/main/commands/query_background.cc',
|
|
106
106
|
'src/main/commands/query_foreach.cc',
|
|
107
|
+
'src/main/commands/query_pages.cc',
|
|
107
108
|
'src/main/commands/remove_async.cc',
|
|
108
109
|
'src/main/commands/scan_async.cc',
|
|
109
110
|
'src/main/commands/scan_background.cc',
|
|
111
|
+
'src/main/commands/scan_pages.cc',
|
|
110
112
|
'src/main/commands/select_async.cc',
|
|
111
113
|
'src/main/commands/truncate.cc',
|
|
112
114
|
'src/main/commands/index_create.cc',
|
package/examples/add.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/append.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/apply.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/batch.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/exists.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/get.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/info.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/operate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/put.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/query.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/remove.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/scan.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/shared/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2018 Aerospike, Inc.
|
|
2
|
+
// Copyright 2018-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2018-
|
|
2
|
+
// Copyright 2018-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/examples/shared/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2018 Aerospike, Inc.
|
|
2
|
+
// Copyright 2018-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/examples/shared/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2018 Aerospike, Inc.
|
|
2
|
+
// Copyright 2018-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/examples/sindex.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/examples/udf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// *****************************************************************************
|
|
3
|
-
// Copyright 2013-
|
|
3
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
4
4
|
//
|
|
5
5
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
6
6
|
// you may not use this file except in compliance with the License.
|
package/lib/aerospike.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/batch_type.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2022 Aerospike, Inc.
|
|
2
|
+
// Copyright 2022-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the 'License')
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/bigint.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/bitwise.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2019 Aerospike, Inc.
|
|
2
|
+
// Copyright 2019-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/cdt_context.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2019 Aerospike, Inc.
|
|
2
|
+
// Copyright 2019-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/commands/command.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/commands/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -46,12 +46,14 @@ exports.JobInfo = class JobInfoCommand extends Command('jobInfo') { }
|
|
|
46
46
|
exports.Operate = class OperateCommand extends ReadRecordCommand('operateAsync') { }
|
|
47
47
|
exports.Put = class PutCommand extends WriteRecordCommand('putAsync') { }
|
|
48
48
|
exports.Query = class QueryCommand extends StreamCommand('queryAsync') { }
|
|
49
|
+
exports.QueryPages = class QueryPagesCommand extends StreamCommand('queryPages') { }
|
|
49
50
|
exports.QueryApply = class QueryApplyCommand extends Command('queryApply') { }
|
|
50
51
|
exports.QueryBackground = class QueryBackgroundCommand extends QueryBackgroundBaseCommand('queryBackground') { }
|
|
51
52
|
exports.QueryOperate = class QueryOperateCommand extends QueryBackgroundBaseCommand('queryBackground') { }
|
|
52
53
|
exports.QueryForeach = class QueryForeachCommand extends StreamCommand('queryForeach') { }
|
|
53
54
|
exports.Remove = class RemoveCommand extends WriteRecordCommand('removeAsync') { }
|
|
54
55
|
exports.Scan = class ScanCommand extends StreamCommand('scanAsync') { }
|
|
56
|
+
exports.ScanPages = class ScanPagesCommand extends StreamCommand('scanPages') { }
|
|
55
57
|
exports.ScanBackground = class ScanBackgroundCommand extends QueryBackgroundBaseCommand('scanBackground') { }
|
|
56
58
|
exports.ScanOperate = class ScanOperateCommand extends QueryBackgroundBaseCommand('scanBackground') { }
|
|
57
59
|
exports.Select = class SelectCommand extends ReadRecordCommand('selectAsync') { }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -20,8 +20,6 @@ const Command = require('./command')
|
|
|
20
20
|
const Key = require('../key')
|
|
21
21
|
const Record = require('../record')
|
|
22
22
|
|
|
23
|
-
const EndOfStream = {}
|
|
24
|
-
|
|
25
23
|
module.exports = asCommand => class StreamCommand extends Command(asCommand) {
|
|
26
24
|
constructor (stream, args) {
|
|
27
25
|
super(stream.client, args)
|
|
@@ -31,8 +29,8 @@ module.exports = asCommand => class StreamCommand extends Command(asCommand) {
|
|
|
31
29
|
callback (error, record) {
|
|
32
30
|
if (error) {
|
|
33
31
|
this.stream.emit('error', error)
|
|
34
|
-
} else if (
|
|
35
|
-
this.stream.emit('end')
|
|
32
|
+
} else if ('state' in record) {
|
|
33
|
+
this.stream.emit('end', record.state)
|
|
36
34
|
} else {
|
|
37
35
|
this.stream.emit('data', record)
|
|
38
36
|
}
|
|
@@ -40,7 +38,7 @@ module.exports = asCommand => class StreamCommand extends Command(asCommand) {
|
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
convertResult (bins, meta, asKey) {
|
|
43
|
-
if (!bins) return
|
|
41
|
+
if (!bins) return { state: meta }
|
|
44
42
|
const key = Key.fromASKey(asKey)
|
|
45
43
|
return new Record(key, bins, meta)
|
|
46
44
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/double.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/error.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
package/lib/event_loop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// *****************************************************************************
|
|
2
|
-
// Copyright 2013-
|
|
2
|
+
// Copyright 2013-2023 Aerospike, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
5
|
// you may not use this file except in compliance with the License.
|