aerospike
Advanced tools
Comparing version 1.0.36 to 1.0.37
@@ -288,2 +288,12 @@ /******************************************************************************* | ||
} | ||
case "BYTES" : | ||
{ | ||
data = new Buffer(argv.datasize); | ||
var i = 0; | ||
while( i < argv.datasize) | ||
{ | ||
data.writeUInt8(i,i++); | ||
} | ||
return data; | ||
} | ||
default : | ||
@@ -290,0 +300,0 @@ return key; |
@@ -504,3 +504,3 @@ # Client Class | ||
- `key` – A [Key object](datamodel.md#key), used to locate the record in the cluster. | ||
- `operations` – An array of operations. | ||
- `operations` – An array of operations.For the list of supported operations please refer [operators](operators.md) | ||
- `policy` – (optional) A [Operate Policy object](policies.md#OperatePolicy) to use for this operation. | ||
@@ -507,0 +507,0 @@ - `callback` – The function to call when the operation completes with the results of the operation. |
{ | ||
"name" : "aerospike", | ||
"version" : "1.0.36", | ||
"version" : "1.0.37", | ||
"description" : "Aerospike Client Library", | ||
@@ -9,3 +9,3 @@ "tags" : [ "aerospike", "database", "nosql" ], | ||
"engines" : { | ||
"node" : ">=0.10 <0.12" | ||
"node" : ">=0.10" | ||
}, | ||
@@ -12,0 +12,0 @@ "os" : [ "linux", "darwin" ], |
@@ -491,2 +491,19 @@ /******************************************************************************* | ||
}); | ||
it('should write a key with undefined value and it should fail gracefully', function(done) { | ||
// generators | ||
var kgen = keygen.string(options.namespace, options.set, undefined); | ||
var mgen = metagen.constant({ttl: 1000}); | ||
// values | ||
var key = aerospike.key(options.namespace, options.set, undefined); | ||
var meta = mgen(key); | ||
var record = { } | ||
// write the record then check | ||
client.put(key, record, meta, function(err, key1) { | ||
expect(err).to.be.ok(); | ||
expect(err.code).to.equal(status.AEROSPIKE_ERR_PARAM); | ||
done(); | ||
}); | ||
}); | ||
it('should check generation and then update record only if generation is equal (CAS)', function(done) { | ||
@@ -493,0 +510,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
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
862883
9988