Then mode of authentication against the replica set.
A MongoDB Collection, resolved from a reactivemongo.api.DefaultDB.
A MongoDB Collection, resolved from a reactivemongo.api.DefaultDB.
You should consider the generic API (reactivemongo.api.collections.GenericCollection) and the default reactivemongo.api.collections.bson.BSONCollection.
A mixin that provides commands about this Collection itself.
A Producer of Collection implementation.
A Producer of Collection implementation.
This is used to get an implementation implicitly when getting a reference of a Collection.
Cursor over results from MongoDB.
Cursor over results from MongoDB.
the type parsed from each result document
Cursor over results from MongoDB.
Cursor over results from MongoDB.
the type parsed from each result document
Flattening strategy for cursor.
Flattening strategy for cursor.
trait FooCursor[T] extends Cursor[T] { def foo: String } implicit def fooFlattener[T] = new CursorFlattener[FooCursor] { def flatten[T](future: Future[FooCursor[T]]): FooCursor[T] = new FlattenedCursor[T](future) with FooCursor[T] { def foo = "Flattened" } }
Internal cursor operations.
Allows to enrich a base cursor.
The reference to a MongoDB database, obtained from a reactivemongo.api.MongoConnection.
The reference to a MongoDB database, obtained from a reactivemongo.api.MongoConnection.
You should consider the provided reactivemongo.api.DefaultDB implementation.
import reactivemongo.api._ val connection = MongoConnection(List("localhost:27017")) val db = connection.database("plugin") val collection = db.map(_("acoll"))
A mixin that provides commands about this database itself.
The default DB implementation, that mixes in the database traits.
The default DB implementation, that mixes in the database traits.
A failover strategy for sending requests.
A failover strategy for sending requests. The default uses 10 retries: 125ms, 250ms, 375ms, 500ms, 625ms, 750ms, 875ms, 1s, 1125ms, 1250ms
the initial delay between the first failed attempt and the next one.
the number of retries to do before giving up.
a function that takes the current iteration and returns a factor to be applied to the initialDelay (default: FailoverStrategy.defaultFactor)
A pool of MongoDB connections, obtained from a reactivemongo.api.MongoDriver.
A pool of MongoDB connections, obtained from a reactivemongo.api.MongoDriver.
Connection here does not mean that there is one open channel to the server: behind the scene, many connections (channels) are open on all the available servers in the replica set.
Example:
import reactivemongo.api._ val connection = MongoConnection(List("localhost")) val db = connection.database("plugin") val collection = db.map(_.("acoll"))
Options for MongoConnection.
Operations about query.
A helper to make the query options.
A helper to make the query options. You may use the methods to set the fields of this class, or set them directly.
the number of documents to skip.
the upper limit on the number of documents to retrieve per batch (0 for unspecified)
the query flags
The Read Concern allows to control the consistency and isolation used to read data from replica sets.
MongoDB Read Preferences enable to read from primary or secondaries with a predefined strategy.
Cursor wrapper, to help to define custom cursor classes.
Cursor wrapper, to help to define custom cursor classes.
CursorProducer
Internal cursor operations.
A helper that sends the given message to the given actor, following a failover strategy.
A helper that sends the given message to the given actor, following a failover strategy. This helper holds a future reference that is completed with a response, after 1 or more attempts (specified in the given strategy). If the all the tryouts configured by the given strategy were unsuccessful, the future reference is completed with a Throwable.
Should not be used directly for most use cases.
Type of the message to send.
(Since version 0.17.0) Unused, will be removed
(Since version 0.17.0) Unused, will be removed
The driver factory
MongoDB-CR authentication
Cursor companion object
Flatteners helper
The driver factory
The driver factory
SCRAM-SHA-1 authentication (since MongoDB 3.6)
SCRAM-SHA-256 authentication (see MongoDB 4.0)
X509 authentication
(Since version 0.16.0) Will be removed
(Since version 0.16.0) Internal: will be made private
(Since version 0.16.0) Use DefaultDB class
(Since version 0.17.0) Internal: will be made private
(Since version 0.19.0) Use reactivemongo-bson-api
(Since version 0.19.0) Use reactivemongo-bson-api or use reactivemongo-bson-compat: import reactivemongo.api.bson.compat._
(Since version 0.19.0) Use reactivemongo-bson-api
(Since version 0.19.0) Use reactivemongo-bson-api
(Since version 0.19.0) Use reactivemongo-bson-api or use reactivemongo-bson-compat: import reactivemongo.api.bson.compat._
(Since version 0.19.0) Use reactivemongo-bson-api or use reactivemongo-bson-compat: import reactivemongo.api.bson.compat._