Package

acolyte

reactivemongo

Permalink

package reactivemongo

Visibility
  1. Public
  2. All

Type Members

  1. case class BDoc(underlying: BSONDocument) extends Product with Serializable

    Permalink

    BSONDocument wrapper for pattern matching

  2. sealed trait ComposeWithCompletion[Out] extends AnyRef

    Permalink
  3. sealed trait ConnectionHandler extends AnyRef

    Permalink

    Connection handler.

  4. trait ConnectionManager[T] extends AnyRef

    Permalink

    Connection manager

  5. trait DriverManager extends AnyRef

    Permalink

    Driver manager

    Driver manager

    Annotations
    @implicitNotFound( ... )
  6. sealed trait LowPrioQueryResponseMaker extends AnyRef

    Permalink
  7. sealed trait LowPriorityCompose extends AnyRef

    Permalink
  8. trait PreparedResponse extends AnyRef

    Permalink

    Response prepared for Mongo request executed with Acolyte driver.

  9. case class Property(name: String) extends Product with Serializable

    Permalink

    Extractor for BSON property, allowing partial and un-ordered match by name.

    Extractor for BSON property, allowing partial and un-ordered match by name.

    import reactivemongo.api.bson.BSONString
    import acolyte.reactivemongo.{
      PreparedResponse, Property, Request, SimpleBody
    }
    
    val EmailXtr = Property("email") // Without scalac plugin
    
    def resultA: PreparedResponse = ???
    def resultB: PreparedResponse = ???
    def resultC: PreparedResponse = ???
    def resultD: PreparedResponse = ???
    def resultE: PreparedResponse = ???
    
    def check(request: Request) = request match {
      case Request("db.col", SimpleBody(EmailXtr(BSONString(e)))) =>
        // Request on db.col with an "email" string property,
        // anywhere in properties (possibly with others which are ignored there),
        // with `e` bound to extracted string value.
        println(e)
        resultB // similar to case resultA without scalac plugin
    
      case req =>
        sys.error("Unexpected request: " + req)
    }
    See also

    ValueDocument

    &

  10. sealed trait QueryHandler extends (ChannelId, Request) ⇒ Option[Try[Response]]

    Permalink

    Query handler.

  11. trait QueryResponseMaker[T] extends (ChannelId, T) ⇒ Option[Try[Response]]

    Permalink

    Creates a query response for given channel ID and result.

    Creates a query response for given channel ID and result.

    T

    Result type

  12. trait Request extends AnyRef

    Permalink

    Request executed against Mongo connection.

  13. trait WithCollection extends AnyRef

    Permalink

    Functions to work with a Mongo collection (provided DB functions).

  14. trait WithDB extends AnyRef

    Permalink

    Functions to work with MongoDB (provided driver functions).

  15. trait WithDriver extends AnyRef

    Permalink

    Functions to work with driver.

  16. trait WithHandler extends AnyRef

    Permalink

    Functions to work with handler (provided driver functions).

  17. trait WithResult extends AnyRef

    Permalink

    Functions to work with result (provided collection functions).

  18. sealed trait WriteHandler extends (ChannelId, WriteOp, Request) ⇒ Option[Try[Response]]

    Permalink

    Write handler.

  19. sealed trait WriteOp extends AnyRef

    Permalink

    Operator, along with request when writing.

  20. trait WriteResponseMaker[T] extends (ChannelId, T) ⇒ Option[Try[Response]]

    Permalink

    Creates a write response for given channel ID and result.

    Creates a write response for given channel ID and result.

    T

    Result type

Value Members

  1. object &

    Permalink

    Meta-extractor, to combine extractor on BSON properties.

    Meta-extractor, to combine extractor on BSON properties.

    Annotations
    @SuppressWarnings()
    See also

    Property

    SimpleBody

  2. object AcolyteDSL extends WithDriver with WithDB with WithCollection with WithHandler with WithResult

    Permalink

    Acolyte DSL for ReactiveMongo.

  3. object AggregateRequest

    Permalink
  4. object CommandRequest

    Permalink

    Request extractor for any command (at DB or collection level)

  5. object ComposeWithCompletion extends LowPriorityCompose

    Permalink
  6. object ConnectionHandler

    Permalink

    Companion object for connection handler.

  7. object ConnectionManager

    Permalink

    Connection manage companion.

  8. object CountRequest

    Permalink

    Body extractor for Count request.

    Body extractor for Count request.

    See also

    SimpleBody

  9. object DeleteOp extends WriteOp with Product with Serializable

    Permalink

    Delete operator

  10. object DeleteRequest

    Permalink

    Delete request

  11. object DriverManager

    Permalink

    Driver manage companion.

  12. object FindAndModifyRequest

    Permalink

    Request extractor for the findAndModify command.

    Request extractor for the findAndModify command.

    See also

    QueryResponse.findAndModify

  13. object InClause

    Permalink

    In clause extractor ($in with BSONArray; e.g.

    In clause extractor ($in with BSONArray; e.g. { '$in': [ ... ] })

  14. object InsertOp extends WriteOp with Product with Serializable

    Permalink

    Insert operator

  15. object InsertRequest

    Permalink

    Insert request

  16. object MongoDB

    Permalink
  17. object NotInClause

    Permalink

    Not-In clause extractor.

    Not-In clause extractor. ($nin with BSONArray; e.g. { '$nin': [ ... ] })

  18. object QueryHandler

    Permalink

    Query handler companion.

  19. object QueryResponse

    Permalink

    Query response factory.

  20. object QueryResponseMaker extends LowPrioQueryResponseMaker

    Permalink

    Response maker companion.

  21. object Request

    Permalink

    Request companion

  22. object RequestBody

    Permalink

    Complete request body extractor; Matches body with many documents.

  23. object SimpleBody

    Permalink

    Body extractor for simple request, with only one document.

    Body extractor for simple request, with only one document. If there are more than one document, matching just ignore extra ones.

  24. object StartSessionRequest

    Permalink

    Request extractor for startSession command (at DB level).

    Request extractor for startSession command (at DB level).

    import acolyte.reactivemongo.{ Request, StartSessionRequest }
    
    def isStart(req: Request): Boolean = req match {
      case StartSessionRequest() => true
      case _ => false
    }
  25. object StartTransactionRequest

    Permalink
  26. object UpdateElement

    Permalink

    Update request

  27. object UpdateOp extends WriteOp with Product with Serializable

    Permalink

    Update operator

  28. object UpdateRequest

    Permalink

    Update request

  29. object ValueDocument

    Permalink

    Extractor of properties for a document used a BSON value (when operator is used, e.g.

    Extractor of properties for a document used a BSON value (when operator is used, e.g. { 'age': { '$gt': 10 } }).

    See also

    Property

    Request

  30. object ValueList

    Permalink

    Extracts values of BSON array as list.

    Extracts values of BSON array as list.

    See also

    ValueDocument

  31. object WriteHandler

    Permalink

    Write handler companion.

  32. object WriteResponse

    Permalink

    Write response factory.

  33. object WriteResponseMaker

    Permalink

    Response maker companion.

Ungrouped