License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
MongoDatabase class representing common database for group of collections.
Technically it is very special collection with common query functions disabled and some service commands provided.
Represents a single database accessible through a given MongoClient.
MongoCollection opIndex(string name)Accesses the collections of this database.MongoErrorDescription getLastError()Retrieves the last error code (if any) from the database server.Bson getLog(string mask)Returns recent log messages for this database from the database server.Bson fsync(bool async = false)Performs a filesystem/disk sync of the database on the server.Bson runCommand(T)(T command_and_options,
string errorInfo = __FUNCTION__, string errorFile = __FILE__, size_t errorLine = __LINE__)Bson runCommandChecked(T, ExceptionT = MongoDriverException)(
T command_and_options,
string errorInfo = __FUNCTION__,
string errorFile = __FILE__,
size_t errorLine = __LINE__
)Generic means to run commands on the database.Bson runCommandUnchecked(T, ExceptionT = MongoDriverException)(
T command_and_options,
string errorInfo = __FUNCTION__,
string errorFile = __FILE__,
size_t errorLine = __LINE__
)dittoMongoCursor!R runListCommand(R = Bson, T)(T command_and_options, int batchSize = 0, Duration getMoreMaxTime = Duration.max)dittothis(MongoClient client, string name)