Type of writer to serialization database metadata
Type of writer to serialization database metadata
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)
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
Returns the names of the collections in this database.
Returns the names of the collections in this database.
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)
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)
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 custom data to associate with the user account
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 authentication restriction
the authentication mechanisms (e.g. SCRAM-SHA-1)
https://docs.mongodb.com/manual/reference/command/createUser/
Drops this database.
Drops 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
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
A failover strategy for sending requests.
Returns an index manager for this database.
Returns an index manager for this database.
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
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
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 (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 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.
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.
(Since version 0.19.1) Use createUser
with DBMetaWriter
(Since version 0.18.4) Use createUser
with complete authentication options
(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.