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
the failover strategy to override the default one
Authenticates the connection on this database.
Authenticates the connection on this database.
the name of the user
the user password
Returns a reactivemongo.api.Collection from this database.
Returns a reactivemongo.api.Collection from this database.
the name of the collection to resolve
the failover strategy to override the default one
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.
The state of the associated connection
The state of the associated connection
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.
Ends the session associated with this database reference, if any otherwise does nothing (since MongoDB 3.6).
Ends the session associated with this database reference, if any otherwise does nothing (since MongoDB 3.6).
EXPERIMENTAL: API may change without notice.
A failover strategy for sending requests.
Returns an index manager for this database.
Returns an index manager for this database.
Kills the session (abort) associated with this database reference, if any otherwise does nothing (since MongoDB 3.6).
Kills the session (abort) associated with this database reference, if any otherwise does nothing (since MongoDB 3.6).
EXPERIMENTAL: API may change without notice.
This database name.
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
the failover strategy to override the default one
the failover strategy to override the default one
the failover strategy to override the default one
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.
the name of the collection to resolve
the failover strategy to override the default one
Starts a new session, does nothing if a session has already being started (since MongoDB 3.6).
Starts a new session, does nothing if a session has already being started (since MongoDB 3.6).
EXPERIMENTAL: API may change without notice.
(Since version 0.16.0) DefaultDB will no longer be a Product
(Since version 0.16.0) DefaultDB will no longer be a Product
Returns the database of the given name on the same MongoConnection.
The default DB implementation, that mixes in the database traits.