Class MongoClient
Represents a connection to a MongoDB server.
Note that this class uses a ConnectionPool internally to create and reuse network conections to the server as necessary. It should be reused for all fibers in a thread for optimum performance in high concurrency scenarios.
Inherits from
-
Object
(base class)
Methods
Name | Description |
---|---|
getCollection
|
Accesses a collection using an absolute path .
|
getDatabase
|
Returns an object representing the specified database. |
getDatabases
|
Return a handle to all databases of the server. |
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.