The name of the database this instance represents.
The server topology for the database.
Optional.
Current bufferMaxEntries value for the database.
The name of the database this instance represents.
The current value of the parameter native_parser.
The options associated with the db instance.
Get the current db topology.
The current slaveOk value for the db instance.
The current write concern values.
Add a user to the database.
The username.
The password.
The command result callback.
Add a user to the database.
The username.
The password.
Optional.
Add a user to the database.
The username.
The password.
Optional settings.
The command result callback.
Return the Admin db instance.
Authenticate a user against the server.
The username.
The password.
The command result callback.
Authenticate a user against the server.
The username.
The password.
Optional.
Authenticate a user against the server.
The username.
The command result callback.
Close the db and its underlying connections.
The result callback.
Close the db and its underlying connections.
Force close, emitting no events.
Close the db and its underlying connections.
Force close, emitting no events.
The result callback.
Fetch a specific collection (containing the actual collection information). If the application does not use strict mode you can can use it without a callback in the following way: var collection = db.collection('mycollection');
The collection name we wish to access.
Fetch a specific collection (containing the actual collection information). If the application does not use strict mode you can can use it without a callback in the following way: var collection = db.collection('mycollection');
The collection name we wish to access.
The collection result callback.
Fetch a specific collection (containing the actual collection information). If the application does not use strict mode you can can use it without a callback in the following way: var collection = db.collection('mycollection');
The collection name we wish to access.
Optional settings.
The collection result callback.
Fetch all collections for the current db.
Fetch all collections for the current db.
The results callback.
Execute a command.
The command hash.
The command result callback.
Execute a command.
The command hash.
Optional.
Execute a command.
The command hash.
Optional settings.
The command result callback.
Create a new collection on a server with the specified options. Use this to create capped collections.
The collection name we wish to access.
The results callback
Create a new collection on a server with the specified options. Use this to create capped collections.
The collection name we wish to access.
Optional.
Create a new collection on a server with the specified options. Use this to create capped collections.
The collection name we wish to access.
Optional settings.
The results callback
Creates an index on the db and collection collection.
Name of the collection to create the index on.
Defines the index.
The command result callback.
Creates an index on the db and collection collection.
Name of the collection to create the index on.
Defines the index.
Optional.
Creates an index on the db and collection collection.
Name of the collection to create the index on.
Defines the index.
Optional settings.
The command result callback.
Create a new Db instance sharing the current socket connections. Be aware that the new db instances are related in a parent-child relationship to the original instance so that events are correctly emitted on child db instances. Child db instances are cached so performing db('db1') twice will return the same instance. You can control these behaviors with the options noListener and returnNonCachedInstance.
The name of the database we want to use.
Create a new Db instance sharing the current socket connections. Be aware that the new db instances are related in a parent-child relationship to the original instance so that events are correctly emitted on child db instances. Child db instances are cached so performing db('db1') twice will return the same instance. You can control these behaviors with the options noListener and returnNonCachedInstance.
The name of the database we want to use.
Optional.
Drop a collection from the database, removing it permanently. New accesses will create a new collection.
Name of collection to drop.
Drop a collection from the database, removing it permanently. New accesses will create a new collection.
Name of collection to drop.
The results callback.
Drop a database, removing it permanently from the server.
Drop a database, removing it permanently from the server.
The results callback.
Runs a command on the database as admin.
The command hash.
The command result callback.
Runs a command on the database as admin.
The command hash.
Optional.
Runs a command on the database as admin.
The command hash.
Optional settings.
The command result callback.
Retrieves this collections index info.
The name of the collection.
The command result callback.
Retrieves this collections index info.
The name of the collection.
Optional.
Retrieves this collections index info.
The name of the collection.
Optional settings.
The command result callback.
Get the list of all collection information for the specified db.
Query to filter collections by.
Optional.
Logout user from server, fire off on all connections and remove all auth info.
The command result callback.
Logout user from server, fire off on all connections and remove all auth info.
Optional.
Logout user from server, fire off on all connections and remove all auth info.
Optional settings.
The command result callback.
Open the database.
Open the database
Callback.
Rename a collection.
Name of current collection to rename.
New name of of the collection.
The results callback.
Rename a collection.
Name of current collection to rename.
New name of of the collection.
Optional.
Rename a collection.
Name of current collection to rename.
New name of of the collection.
Optional settings.
The results callback.
Get all the db statistics.
The collection result callback.
Get all the db statistics.
Optional.
Get all the db statistics.
Optional settings.
The collection result callback.
Generated using TypeDoc
Db.
http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html