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, errorInfo, errorFile, errorLine)
|
|
runCommandChecked
(command_and_options, errorInfo, errorFile, errorLine)
|
Generic means to run commands on the database.
|
runCommandUnchecked
(command_and_options, errorInfo, errorFile, errorLine)
|
Generic means to run commands on the database.
|
runListCommand
(command_and_options, batchSize, getMoreMaxTime)
|
Generic means to run commands on the database.
|