diff --git a/lib/datastore.js b/lib/datastore.js index 40ae874..ae568bf 100644 --- a/lib/datastore.js +++ b/lib/datastore.js @@ -480,6 +480,18 @@ Datastore.prototype.remove = function () { 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;