Closed ghost closed 13 years ago
You can use the native driver methods by simply calling them, they are proxied to MongoCursor or MongoCollection via the __call magic method.
As for creating indexes, you can insert into the system indexes collection: http://www.mongodb.org/display/DOCS/Index-Related+Commands
Hey Colin, I was just about done reading __call when I got your reply! I'm just curious why we can't map the native driver's ensureIndex as well? It's available in the MongoCollection class...
Yes, either way will work.
Thanks
Hey Colin, thanks for the great module. Been testing it so far and was about to transfer my mysql db over. Sorta got stumped at the ensureIndex() part. How do I implement this for custom document keys? Also, is there any way to access the native driver methods while using your module? Like batchInsert() etc. ?