aerospike
Advanced tools
Comparing version 1.0.19 to 1.0.21
@@ -23,2 +23,3 @@ # Client Class | ||
- [connect()](#connect) | ||
- [execute()](#execute) | ||
- [exists()](#exists) | ||
@@ -31,2 +32,4 @@ - [get()](#get) | ||
- [select()](#select) | ||
- [udfRegister()](#udfRegister) | ||
- [udfRemove()](#udfRemove) | ||
- [updateLogging()](#updateLogging) | ||
@@ -202,3 +205,3 @@ | ||
### put(key, udfArgs, policy=null, callback) | ||
### execute(key, udfArgs, policy=null, callback) | ||
@@ -225,3 +228,3 @@ Executes an UDF on a record in the database. | ||
client.put(key('test','demo','key1'), udfArgs, function(error, res, key) { | ||
client.execute(key('test','demo','key1'), udfArgs, function(error, res, key) { | ||
// do something | ||
@@ -228,0 +231,0 @@ }); |
{ | ||
"name" : "aerospike", | ||
"version" : "1.0.19", | ||
"version" : "1.0.21", | ||
"description" : "Aerospike Client Library", | ||
@@ -5,0 +5,0 @@ "tags" : [ "aerospike", "database", "nosql" ], |
@@ -123,3 +123,10 @@ /******************************************************************************* | ||
result = results[j]; | ||
expect(result.status).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
// This if-else check is introduced to handle test failures | ||
// in backward compatibility issues. Should be removed when an official release | ||
// of C client is done, with error code changes. | ||
if(result.status != 602) { | ||
expect(result.status).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} else { | ||
expect(result.status).to.equal(602); | ||
} | ||
} | ||
@@ -126,0 +133,0 @@ |
@@ -130,3 +130,10 @@ /******************************************************************************* | ||
result = results[j]; | ||
expect(result.status).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(result.status != 602) | ||
{ | ||
expect(result.status).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(result.status).to.equal(602); | ||
} | ||
} | ||
@@ -133,0 +140,0 @@ |
@@ -101,3 +101,8 @@ /******************************************************************************* | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_UDF); | ||
if(err.code != 1300) { | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_UDF); | ||
} | ||
else { | ||
expect(err.code).to.equal(1300); | ||
} | ||
done(); | ||
@@ -104,0 +109,0 @@ }); |
@@ -92,4 +92,11 @@ /******************************************************************************* | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(err.code != 602) | ||
{ | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(err.code).to.equal(602); | ||
} | ||
done(); | ||
@@ -96,0 +103,0 @@ }); |
@@ -90,4 +90,9 @@ /******************************************************************************* | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(err.code != 602) { | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(err.code).to.equal(602); | ||
} | ||
done(); | ||
@@ -94,0 +99,0 @@ }); |
@@ -289,3 +289,10 @@ /******************************************************************************* | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(err.code != 602) | ||
{ | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(err.code).to.equal(602); | ||
} | ||
@@ -292,0 +299,0 @@ client.put(key, record, meta, function(err, key5) { |
@@ -78,3 +78,10 @@ /******************************************************************************* | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(err.code != 602) | ||
{ | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(err.code).to.equal(602); | ||
} | ||
@@ -108,3 +115,10 @@ done(); | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(err.code != 602) | ||
{ | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(err.code).to.equal(602); | ||
} | ||
@@ -129,3 +143,10 @@ done(); | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(err.code != 602) | ||
{ | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(err.code).to.equal(602); | ||
} | ||
@@ -132,0 +153,0 @@ done(); |
@@ -103,3 +103,10 @@ /******************************************************************************* | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
if(err.code != 602) | ||
{ | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_RECORD_NOT_FOUND); | ||
} | ||
else | ||
{ | ||
expect(err.code).to.equal(602); | ||
} | ||
@@ -106,0 +113,0 @@ done(); |
@@ -103,3 +103,8 @@ /******************************************************************************* | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR); | ||
if(err.code != 100) { | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR); | ||
} | ||
else { | ||
expect(err.code).to.equal(100); | ||
} | ||
done(); | ||
@@ -106,0 +111,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
611361
6811