Returns a reactivemongo.api.Collection from this database (alias for the collection
method).
Returns a reactivemongo.api.Collection from this database (alias for the collection
method).
the name of the collection to resolve
Authenticates the connection on this database.
Authenticates the connection on this database.
Returns a reactivemongo.api.Collection from this database.
Returns a reactivemongo.api.Collection from this database.
the name of the collection to resolve
Returns the names of the collections in this database.
Returns the names of the collections in this database.
The reactivemongo.api.MongoConnection that will be used to query this database.
The reactivemongo.api.MongoConnection that will be used to query 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.
Drops this database.
A failover strategy for sending requests.
Returns an index manager for this database.
Returns an index manager for this database.
This database name.
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 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.
Returns the server status.
Returns the database of the given name on the same MongoConnection.
Returns the database of the given name on the same MongoConnection.
Returns the database of the given name on the same MongoConnection.
the name of the collection to resolve
Sends a command and get the future result of the command.
Sends a command and get the future result of the command.
the command to send
the ReadPreference to use for this command (defaults to MongoConnectionOptions.readPreference)
a future containing the result of the command.
(Since version 0.11.0) Consider using reactivemongo.api.commands along with DefaultDB.runCommand
methods
(Since version 0.12-RC0) Use runCommand
with the failoverStrategy
parameter
(Since version 0.12-RC0) Use runCommand
with the failoverStrategy
parameter
(Since version 0.12-RC5) Use the alternative with ReadPreference
(Since version 0.12-RC0) Use runValueCommand
with the failoverStrategy
parameter
(Since version 0.12-RC0) Either use one of the runX
function on the DB instance, or use reactivemongo.api.commands.Command.run
directly
The default DB implementation, that mixes in the database traits.