Package

reactivemongo

api

Permalink

package api

Linear Supertypes
PackageCompat, LowPriorityPackage, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. api
  2. PackageCompat
  3. LowPriorityPackage
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AsyncDriver extends Driver

    Permalink

  2. sealed trait AuthenticationMode extends AnyRef

    Permalink

    Then mode of authentication against the replica set.

  3. trait Collection extends AnyRef

    Permalink

    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.

  4. trait CollectionMetaCommands extends AnyRef

    Permalink

    A mixin that provides commands about this Collection itself.

  5. trait CollectionProducer[+C <: Collection] extends AnyRef

    Permalink

    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.

  6. trait Cursor[T] extends CursorCompatAPI[T]

    Permalink

    Cursor over results from MongoDB.

    Cursor over results from MongoDB.

    T

    the type parsed from each result document

  7. trait CursorCompatAPI[T] extends AnyRef

    Permalink

    Cursor over results from MongoDB.

    Cursor over results from MongoDB.

    T

    the type parsed from each result document

  8. trait CursorFlattener[C[_] <: Cursor[_]] extends AnyRef

    Permalink

    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"
        }
    }
  9. trait CursorOps[T] extends AnyRef

    Permalink

    Internal cursor operations.

  10. final class CursorOptions extends AnyVal

    Permalink

  11. trait CursorProducer[T] extends AnyRef

    Permalink

    Allows to enrich a base cursor.

  12. sealed trait DB extends AnyRef

    Permalink

    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"))
  13. trait DBMetaCommands extends AnyRef

    Permalink

    A mixin that provides commands about this database itself.

  14. class DefaultDB extends DB with DBMetaCommands with GenericDB[Pack] with Product with Serializable

    Permalink

    The default DB implementation, that mixes in the database traits.

    The default DB implementation, that mixes in the database traits.

    Annotations
    @SerialVersionUID()
  15. case class FailoverStrategy(initialDelay: FiniteDuration = FiniteDuration(100, "ms"), retries: Int = 10, delayFactor: (Int) ⇒ Double = FailoverStrategy.defaultFactor) extends Product with Serializable

    Permalink

    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

    initialDelay

    the initial delay between the first failed attempt and the next one.

    retries

    the number of retries to do before giving up.

    delayFactor

    a function that takes the current iteration and returns a factor to be applied to the initialDelay (default: FailoverStrategy.defaultFactor)

  16. class FlattenedCursor[T] extends Cursor[T] with FlattenedCursorCompat[T]

    Permalink
  17. class MongoConnection extends AnyRef

    Permalink

    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"))
  18. class MongoConnectionOptions extends Product with Serializable

    Permalink

    Options for MongoConnection.

  19. class MongoDriver extends Driver

    Permalink

  20. trait QueryOps extends AnyRef

    Permalink

    Operations about query.

  21. case class QueryOpts(skipN: Int = 0, batchSizeN: Int = 0, flagsN: Int = 0) extends QueryOps with Product with Serializable

    Permalink

    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.

    skipN

    the number of documents to skip.

    batchSizeN

    the upper limit on the number of documents to retrieve per batch (0 for unspecified)

    flagsN

    the query flags

  22. sealed trait ReadConcern extends AnyRef

    Permalink

    The Read Concern allows to control the consistency and isolation used to read data from replica sets.

  23. sealed trait ReadPreference extends AnyRef

    Permalink

    MongoDB Read Preferences enable to read from primary or secondaries with a predefined strategy.

  24. trait WrappedCursor[T] extends Cursor[T] with WrappedCursorCompat[T]

    Permalink

    Cursor wrapper, to help to define custom cursor classes.

    Cursor wrapper, to help to define custom cursor classes.

    See also

    CursorProducer

  25. trait WrappedCursorOps[T] extends CursorOps[T]

    Permalink

    Internal cursor operations.

  26. trait WriteConcern extends AnyRef

    Permalink
  27. class Failover[T] extends AnyRef

    Permalink

    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.

    T

    Type of the message to send.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.17.0) Unused, will be removed

  28. type SerializationPackObject = SerializationPack with Singleton

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.17.0) Unused, will be removed

Value Members

  1. object AsyncDriver

    Permalink

    The driver factory

  2. object ChangeStreams

    Permalink
  3. object CrAuthentication extends AuthenticationMode with Product with Serializable

    Permalink

    MongoDB-CR authentication

  4. object Cursor

    Permalink

    Cursor companion object

  5. object CursorFlattener

    Permalink

    Flatteners helper

  6. object CursorOps

    Permalink
  7. object CursorOptions

    Permalink
  8. object CursorProducer

    Permalink
  9. object Driver

    Permalink

    The driver factory

  10. object FailoverStrategy extends Serializable

    Permalink
  11. object MongoConnection

    Permalink
  12. object MongoConnectionOptions extends Serializable

    Permalink
  13. object MongoDriver

    Permalink

    The driver factory

  14. object ReadConcern

    Permalink
  15. object ReadPreference

    Permalink
  16. object ScramSha1Authentication extends AuthenticationMode with ScramAuthentication with Product with Serializable

    Permalink

    SCRAM-SHA-1 authentication (since MongoDB 3.6)

  17. object ScramSha256Authentication extends AuthenticationMode with ScramAuthentication with Product with Serializable

    Permalink

    SCRAM-SHA-256 authentication (see MongoDB 4.0)

  18. object Version

    Permalink
  19. object WriteConcern

    Permalink
  20. object X509Authentication extends AuthenticationMode with Product with Serializable

    Permalink

    X509 authentication

  21. package bson

    Permalink
  22. package collections

    Permalink
  23. package commands

    Permalink
  24. package gridfs

    Permalink
  25. package indexes

    Permalink

Deprecated Value Members

  1. object DB

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Will be removed

  2. object DefaultCursor

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Internal: will be made private

  3. object DefaultDB extends AbstractFunction3[String, MongoConnection, FailoverStrategy, DefaultDB] with Serializable

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Use DefaultDB class

  4. object Failover2

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.17.0) Internal: will be made private

  5. implicit final def toDocument(doc: BSONDocument): BSONDocument

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.0) Use reactivemongo-bson-api

  6. implicit final def toDocumentHandler[T](implicit h: BSONDocumentHandler[T]): BSONDocumentHandler[T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.0) Use reactivemongo-bson-api or use reactivemongo-bson-compat: import reactivemongo.api.bson.compat._

  7. implicit def toDocumentIteratee[T](it: Iteratee[BSONDocument, T])(implicit ec: ExecutionContext): Iteratee[BSONDocument, T]

    Permalink
    Definition Classes
    PackageCompat
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.0) Use reactivemongo-bson-api

  8. implicit def toDocumentIteratorIteratee[T](it: Iteratee[Iterator[BSONDocument], T])(implicit ec: ExecutionContext): Iteratee[Iterator[BSONDocument], T]

    Permalink
    Definition Classes
    PackageCompat
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.0) Use reactivemongo-bson-api

  9. implicit final def toDocumentReader[T](implicit h: BSONDocumentReader[T]): BSONDocumentReader[T]

    Permalink
    Definition Classes
    LowPriorityPackage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.0) Use reactivemongo-bson-api or use reactivemongo-bson-compat: import reactivemongo.api.bson.compat._

  10. implicit final def toDocumentWriter[T](implicit h: BSONDocumentWriter[T]): BSONDocumentWriter[T]

    Permalink
    Definition Classes
    LowPriorityPackage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.0) Use reactivemongo-bson-api or use reactivemongo-bson-compat: import reactivemongo.api.bson.compat._

Inherited from PackageCompat

Inherited from LowPriorityPackage

Inherited from AnyRef

Inherited from Any

Ungrouped