vibe.d beta banner
get vibe.d
0.10.1

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.

Methods

NameDescription
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.
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.