A wrapped native driver Db instance.

Constructor

Static Properties

class Database

Static Functions

collection (
[ host ] ,
[ port ] ,
) {

Return a wrapped MongoDB collection with inline compression support.

Arguments

getDatabase (
[ host ] ,
[ port ] ,
) {

Return a wrapped database instance instance with inline compression support.

Arguments

getRawDatabase (
[ host ] ,
[ port ] ,
) {

Return a wrapped database instance instance with inline compression support.

Arguments

Instance Methods

admin ( ) {

Retrieve the admin collection.

close ( ) {

Close all active database connections.

Arguments

collectionNames ( ) {

Retrieve an Array of the names of every collection on this database.

Arguments

collections ( ) {

Get an Array of Collection instances for all collections on this database.

Arguments

db ( ) {

Obtain a Database instance for another database.

Arguments

listCollections ( ) {

Obtain a cursor listing collection information on this database.

open ( ) {

Open a pool of connections to the database.

Arguments