Class MongoDBConnector
Object
|
+--MongoDBConnector
- class
MongoDBConnector
Defined in mongodb.js
Method Summary |
void
|
close(<object> self, <object> params, <function> callback)
Close the MongoDB connection.
|
void
|
connect(<object> dbConfiguration, <function> callback)
Connet to the MongoDB database.
|
void
|
create(<object> self, <object> params, <function> callback)
Create a new MongoDB document.
|
void
|
createIndex(<object> self, <object> params, <function> callback)
Create a new index on a MongoDB document.
|
void
|
find(<object> self, <object> params, <function> callback)
Query for a MongoDB document.
|
MongoDBConnector
MongoDBConnector()
close
void close(<object> self, <object> params, <function> callback)
Close the MongoDB connection.
Parameters:
self
- reference to synchronous processing stack.
callback
- callback for returning control to processing stack.
connect
void connect(<object> dbConfiguration, <function> callback)
Connet to the MongoDB database.
Parameters:
dbConfiguration
- database configuration loaded in from db.json
callback
- callback function returns control to the processing-stack.
create
void create(<object> self, <object> params, <function> callback)
Create a new MongoDB document.
Parameters:
self
- reference to synchronous processing stack.
params
- parameters for creating new model.
callback
- callback for returning control to processing stack.
createIndex
void createIndex(<object> self, <object> params, <function> callback)
Create a new index on a MongoDB document.
Parameters:
self
- reference to synchronous processing stack.
params
- object that describes the indexes on a MongoDB document.
callback
- callback for returning control to processing stack.
find
void find(<object> self, <object> params, <function> callback)
Query for a MongoDB document.
Parameters:
self
- reference to synchronous processing stack.
params
- parameters for finding the document.
callback
- callback for returning control to processing stack.
Documentation generated by
JSDoc on Sun May 9 00:47:14 2010