Ends the transaction associated with the current client session, if any otherwise does nothing (since MongoDB 3.6).
Ends the transaction associated with the current client session, if any otherwise does nothing (since MongoDB 3.6).
EXPERIMENTAL: API may change without notice.
None
if there is no session/transaction to abort
or Some
database reference with transaction aborted (but not session)
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.
Ends the transaction associated with the current client session, if any otherwise does nothing (since MongoDB 3.6).
Ends the transaction associated with the current client session, if any otherwise does nothing (since MongoDB 3.6).
EXPERIMENTAL: API may change without notice.
None
if there is no session/transaction to abort
or Some
database reference with transaction aborted (but not session)
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.
None
if there is no session to end
or Some
database reference with session ended
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.
None
if there is no session to kill
or Some
database reference with session aborted
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.
None
if session is already started,
or Some
database reference updated with a new session
Starts a transaction if none is already started with the current client session, otherwise does nothing (since MongoDB 3.6).
Starts a transaction if none is already started with the current client session, otherwise does nothing (since MongoDB 3.6).
EXPERIMENTAL: API may change without notice.
None
if there is no session/transaction to abort
or Some
database reference with transaction aborted (but not session)
(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.