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.
ReadPreference readPreference() @property @safe constReturns the read preference configured for this client.MongoDatabase getDatabase(string dbName) @safeReturns an object representing the specified database.LockedConnection!MongoConnection lockConnection() @safeMongoHost getSelectedHost() @safethis(string host, ushort port)this(string url)Initializes a MongoDB client using a URL.this(MongoClientSettings settings)