Returns the names of the collections in this database.
Create the specified user.
Create the specified user.
the name of the user to be created
the user password (not required if the database uses external credentials)
the roles granted to the user, possibly an empty to create users without roles
when true, the mongod instance will create the hash of the user password (default: true
)
the optional level of write concern
the custom data to associate with the user account
https://docs.mongodb.com/manual/reference/command/createUser/
Drops this database.
Returns an index manager for this database.
Tests if the server, resolved according to the given read preference, responds to commands.
Tests if the server, resolved according to the given read preference, responds to commands. (since MongoDB 3.0)
true if successful (even if the server is write locked)
Renames a collection.
Can only be executed if the this database reference is the admin
one.
the name of the database where the collection exists with the current
name
the current name of the collection, in the specified db
the new name of this collection (inside the same db
)
If a collection of name to
already exists, then drops that collection before renaming this one.
a failure if the dropExisting option is false and the target collection already exists
Returns the server status.
A mixin that provides commands about this database itself.