License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
MongoClient class doing connection management. Usually this is a main entry point for client code.
Represents a connection to a MongoDB server.
Note that this class uses a ConnectionPool internally to create and reuse network connections to the server as necessary. It should be reused for all fibers in a thread for optimum performance in high concurrency scenarios.
ConnectionPool!MongoConnection m_connectionsvoid cleanupConnections()Disconnects all currently unused connections to the server.MongoCollection getCollection(string path)Accesses a collection using an absolute path.MongoDatabase getDatabase(string dbName)Returns an object representing the specified database.auto getDatabases()()Return a handle to all databases of the server.auto lockConnection()this(string host, ushort port)this(string url)Initializes a MongoDB client using a URL.this(MongoClientSettings settings)