Struct MongoDatabase
Represents a single database accessible through a given MongoClient.
Constructors
Name | Description |
---|---|
this
|
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
|
Performs a filesystem/disk sync of the database on the server. |
getLastError
|
Retrieves the last error code (if any) from the database server. |
getLog
|
Returns recent log messages for this database from the database server. |
opIndex
|
Accesses the collections of this database. |
runCommand
|
Generic means to run commands on the database. |
Authors
Sönke Ludwig
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.