vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Class MongoClient

Represents a connection to a MongoDB server.

class MongoClient ;

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.


cleanupConnections () Disconnects all currently unused connections to the server.
getCollection (path) Accesses a collection using an absolute path.
getDatabase (dbName) Returns an object representing the specified database.
getDatabases () Return a handle to all databases of the server.

Sönke Ludwig


© 2012 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.