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)
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.
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.
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.
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)
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 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
Returns the database of the given name on the same MongoConnection.
The reference to a MongoDB database, obtained from a reactivemongo.api.MongoConnection.
You should consider the provided reactivemongo.api.DefaultDB implementation.