Struct MongoDatabase
Represents a single database accessible through a given MongoClient.
Constructors
Name | Description |
this
(client, name)
|
|
Properties
Name | Type | Description |
client [get]
|
MongoClient | The client which represents the connection to the database server
|
name [get]
|
string | The name of this database
|
Methods
Name | Description |
fsync
(async)
|
Performs a filesystem/disk sync of the database on the server.
|
getLastError
()
|
Retrieves the last error code (if any) from the database server.
|
getLog
(mask)
|
Returns recent log messages for this database from the database server.
|
opIndex
(name)
|
Accesses the collections of this database.
|
runCommand
(command_and_options)
|
Generic means to run commands on the database.
|