Aborts the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
Aborts the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
The database reference with transaction aborted (but not session)
Commits the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
Commits the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
The database reference with transaction commited (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 (closes) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
Ends (closes) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
The database reference with session ended
A failover strategy for sending requests.
Kills (aborts) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
Kills (aborts) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
The database reference with session aborted
This database name.
Starts a new session (since MongoDB 3.6).
Starts a new session (since MongoDB 3.6).
EXPERIMENTAL: API may change without notice.
if true fails if a session is already started
The database reference updated with a new session, if none is already started with the current reference.
Starts a transaction (since MongoDB 4.0), if none is already started with the current client session otherwise does nothing.
Starts a transaction (since MongoDB 4.0), if none is already started with the current client session otherwise does nothing.
It fails if no session is previously started (see startSession
).
EXPERIMENTAL: API may change without notice.
// Equivalent to db.startTransaction(aWriteConcern, failIfAlreadyStarted = false)
the write concern for the transaction operation
The database reference with transaction.
Aborts the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
Aborts the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
// Equivalent to db.abortTransaction(failIfNotStarted = false)
The 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
Commits the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
Commits the transaction associated with the current client session (since MongoDB 4.0), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
// Equivalent to db.commitTransaction(failIfNotStarted = false)
The database reference with transaction commited (but not session)
Ends (closes) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
Ends (closes) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
// Equivalent to db.endSession(failIfNotStarted = false)
The database reference with session ended
Kills (aborts) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
Kills (aborts) the session associated with this database reference (since MongoDB 3.6), if any otherwise does nothing .
EXPERIMENTAL: API may change without notice.
// Equivalent to db.killSession(failIfNotStarted = false)
The database reference with session aborted
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 (since MongoDB 3.6), does nothing if a session has already being started .
Starts a new session (since MongoDB 3.6), does nothing if a session has already being started .
EXPERIMENTAL: API may change without notice.
// Equivalent to db.startSession(failIfAlreadyStarted = false)
The database reference updated with a new session
Starts a transaction (since MongoDB 4.0), if none is already started with the current client session otherwise does nothing.
Starts a transaction (since MongoDB 4.0), if none is already started with the current client session otherwise does nothing.
It fails if no session is previously started (see startSession
).
EXPERIMENTAL: API may change without notice.
// Equivalent to db.startTransaction(aWriteConcern, failIfAlreadyStarted = false)
the write concern for the transaction operation
The database reference with transaction.
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.