1.0.3 • Published 11 years ago
mongodb-wrapper v1.0.3
node-mongodb-wrapper
A wrapper for node-mongodb-native as close as possible to the native javascript driver. Why learn two interfaces?
Yes, we know other people are doing the same thing. This one has been easier to use.
Features
- Minimal interface closely matching the command-line driver: http://www.mongodb.org/display/DOCS/Manual
- Lazy open/close of connections
- Most features of node-mongodb-native
Features it doesn't have
- Connection pooling. Each db will share a single connection.
Installation
Usage
- You have to tell the db object which collections you're about to use (Harmony Proxies, I need you!)
- You have to provide callbacks on "actionable" calls (
toArray
,count
, but notfind
) - Otherwise, just like the native javascript driver
For more examples, please look at the test suite