Failing test case for indexes and array fields

pull/2/head
Louis Chatriot 11 years ago
parent 6ff7709bc2
commit 0e7fde88d2
  1. 12
      lib/datastore.js

@ -480,6 +480,18 @@ Datastore.prototype.remove = function () {
this.executor.push({ this: this, fn: this._remove, arguments: arguments }); this.executor.push({ this: this, fn: this._remove, arguments: arguments });
}; };
/*
var db = new Datastore({ inMemoryOnly: true })
//db.ensureIndex({ fieldName: 'tag' });
db.insert({ tag: ['a', 'b', 'c'] }, function () {
db.find({ tag: 'b' }, function (err, item) {
console.log(err);
console.log(item);
});
});
*/
module.exports = Datastore; module.exports = Datastore;

Loading…
Cancel
Save