Permalink
Browse files

ensure index

  • Loading branch information...
olegp committed Dec 17, 2012
1 parent 6d2c721 commit d0f9e52f6c098b743788236dda90fe0bb7e7250a
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/mongo-sync.js
  2. +1 −1 package.json
View
@@ -128,6 +128,10 @@ Collection.prototype.dropIndex = function() {
return this._collection.drop.sync(this._collection, arguments);
}
+Collection.prototype.ensureIndex = function() {
+ return this._collection.ensureIndex.sync(this._collection, arguments);
+}
+
Collection.prototype.findOne = function() {
return this._collection.findOne.sync(this._collection, arguments);
}
View
@@ -2,7 +2,7 @@
"name": "mongo-sync",
"keywords": ["mongodb"],
"description": "Synchronous MongoDB driver",
- "version": "0.1.1",
+ "version": "0.1.2",
"author": "Oleg Podsechin <oleg@ionsquare.com>",
"directories" : {
"lib" : "./lib"

0 comments on commit d0f9e52

Please sign in to comment.