MongoDatabase

Represents a single database accessible through a given MongoClient.

Constructors

this
this(MongoClient client, string name)
Undocumented in source.

Members

Functions

fsync
Bson fsync(bool async)

Performs a filesystem/disk sync of the database on the server.

getLastError
MongoErrorDescription getLastError()

Retrieves the last error code (if any) from the database server.

getLog
Bson getLog(string mask)

Returns recent log messages for this database from the database server.

opIndex
MongoCollection opIndex(string name)

Accesses the collections of this database.

runCommand
Bson runCommand(T command_and_options)
runListCommand
MongoCursor!R runListCommand(T command_and_options)

Generic means to run commands on the database.

Properties

client
MongoClient client [@property getter]

The client which represents the connection to the database server

name
string name [@property getter]

The name of this database

Meta