Module mongorover.MongoClient

Tools for connecting to MongoDB.

Class mongorover.MongoClient

mongorover.MongoClient:new (db_uri) Creates a MongoClient instance.
mongorover.MongoClient:getDatabaseNames () Returns array of database names.
mongorover.MongoClient:getDatabase (database_name) Returns a MongoDatabase object.


Class mongorover.MongoClient

Tools for connecting to MongoDB.
mongorover.MongoClient:new (db_uri)
Creates a MongoClient instance. For documentation to create a mongoDB connection URI (http://docs.mongodb.org/manual/reference/connection-string/).

Parameters:

  • db_uri string The MongoDB connection URI.

Returns:

    A MongoClient instance.
mongorover.MongoClient:getDatabaseNames ()
Returns array of database names.

Returns:

    {string,...} An array of database names.
mongorover.MongoClient:getDatabase (database_name)
Returns a MongoDatabase object.

Parameters:

  • database_name string The name of the database.

Returns:

  1. MongoDatabase A MongoDatabase object.
  2. A MongoDatabase instance.
generated by LDoc 1.4.3 Last updated 2015-09-16 03:55:02