Socket
Socket
Sign inDemoInstall

aerospike

Package Overview
Dependencies
Maintainers
2
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aerospike - npm Package Compare versions

Comparing version 1.0.30 to 1.0.31

aerospike-1.0.31.tgz

8

examples/scan.js

@@ -134,3 +134,4 @@ /*******************************************************************************

var query = client.query(argv.namespace, argv.set );
var options = { nobins:false, concurrent: true, select: ['i', 's'] }
var query = client.query(argv.namespace, argv.set, options );

@@ -156,6 +157,1 @@ var stream = query.execute();

});
/*******************************************************************************
*
* Perform the operation
*
******************************************************************************/

@@ -149,3 +149,2 @@ var as = require('../build/Release/aerospike.node')

queryObj.setQueryType(as.queryType.QUERYUDF);
return null;
}

@@ -168,3 +167,3 @@ else if(queryObj.hasAggregation)

{
query.setQueryType(as.queryType.SCANUDF);
queryObj.setQueryType(as.queryType.SCANUDF);
}

@@ -171,0 +170,0 @@ else if(queryObj.hasAggregation)

{
"name" : "aerospike",
"version" : "1.0.30",
"version" : "1.0.31",
"description" : "Aerospike Client Library",

@@ -5,0 +5,0 @@ "tags" : [ "aerospike", "database", "nosql" ],

@@ -491,3 +491,41 @@ /*******************************************************************************

});
it('should check generation and then update record only if generation is equal (CAS)', function(done) {
// generators
var kgen = keygen.integer(options.namespace, options.set);
var mgen = metagen.constant({ttl: 1000});
var rgen = recgen.record({i: valgen.integer(), s: valgen.string()});
// values
var key = kgen();
var meta = mgen(key);
var record = rgen(key, meta);
// write the record then check
client.put(key, record, meta, function(err, key) {
expect(err).to.be.ok();
expect(err.code).to.equal(status.AEROSPIKE_OK);
// check the content of the record
client.get(key, function(err, record, metadata, key) {
expect(err).to.be.ok();
expect(err.code).to.equal(status.AEROSPIKE_OK);
var mgen = metagen.constant({gen:1})
var meta = mgen(key);
var writePolicy = { gen: aerospike.policy.gen.EQ};
client.put(key, record, meta, writePolicy, function(err, key){
expect(err).to.be.ok();
expect(err.code).to.equal(status.AEROSPIKE_OK);
client.get(key, function( err, record, metadata, key) {
expect(err).to.be.ok();
expect(err.code).to.equal(status.AEROSPIKE_OK);
expect(metadata.gen).to.equal(2);
client.remove(key, function(err, key){
done();
});
});
});
});
});
});
});

@@ -103,3 +103,4 @@ /*******************************************************************************

it('should query all the records', function(done) {
this.timeout(5000);
// counters

@@ -130,2 +131,4 @@ var total = 100;

it('should query and select no bins', function(done) {
this.timeout(5000);
var total = 100;

@@ -153,2 +156,4 @@ var count = 0;

it('should query and select only few bins in the record', function(done) {
this.timeout(5000);
var total = 99;

@@ -176,3 +181,3 @@ var count = 0;

it('should do a scan background and check for the status of scan job ', function(done) {
var args = { scanUDF: {module: 'scan', funcname: 'updateRecord'}}
var args = { UDF: {module: 'scan', funcname: 'updateRecord'}}
var scanBackground = client.query( options.namespace, options.set, args);

@@ -179,0 +184,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc