package reactivemongo
- Alphabetic
- Public
- All
Type Members
-
case class
BDoc(underlying: BSONDocument) extends Product with Serializable
BSONDocument wrapper for pattern matching
- sealed trait ComposeWithCompletion[Out] extends AnyRef
-
sealed
trait
ConnectionHandler extends AnyRef
Connection handler.
-
trait
ConnectionManager[T] extends AnyRef
Connection manager
-
trait
DriverManager extends AnyRef
Driver manager
Driver manager
- Annotations
- @implicitNotFound( ... )
- sealed trait LowPriorityCompose extends AnyRef
-
trait
PreparedResponse extends AnyRef
Response prepared for Mongo request executed with Acolyte driver.
-
case class
Property(name: String) extends Product with Serializable
Extractor for BSON property, allowing partial and un-ordered match by name.
Extractor for BSON property, allowing partial and un-ordered match by name. Rich match syntax
~(Property(name), ...)
requires use of http://acolyte.eu.org/scalac-plugin.htmlimport reactivemongo.api.bson.{ BSONInteger, BSONString } import acolyte.reactivemongo.{ PreparedResponse, Property, Request, SimpleBody, ValueDocument, & } 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(~(Property("email"), 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. resultA 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. resultB // similar to case resultA without scalac plugin case Request("db.col", SimpleBody( ~(Property("name"), BSONString("eman")))) => // Request on db.col with an "name" string property with "eman" as value, // anywhere in properties (possibly with others which are ignored there). resultC case Request(colName, SimpleBody( ~(Property("age"), BSONInteger(age)) & ~(Property("email"), BSONString(v)))) => // Request on any collection, with an "age" integer property // and an "email" string property, possibly not in this order. resultD case Request(colName, SimpleBody( ~(Property("age"), ValueDocument( ~(Property("\$gt"), BSONInteger(minAge)))) & ~(Property("email"), BSONString("[email protected]")))) => // Request on any collection, with an "age" property with itself // a operator property "\$gt" having an integer value, and an "email" // property (at the same level as age), without order constraint. resultE }
- See also
-
sealed
trait
QueryHandler extends (ChannelId, Request) ⇒ Option[Try[Response]]
Query handler.
-
trait
QueryResponseMaker[T] extends (ChannelId, T) ⇒ Option[Try[Response]]
Creates a query response for given channel ID and result.
Creates a query response for given channel ID and result.
- T
Result type
-
trait
Request extends AnyRef
Request executed against Mongo connection.
-
trait
WithCollection extends AnyRef
Functions to work with a Mongo collection (provided DB functions).
-
trait
WithDB extends AnyRef
Functions to work with MongoDB (provided driver functions).
-
trait
WithDriver extends AnyRef
Functions to work with driver.
-
trait
WithHandler extends AnyRef
Functions to work with handler (provided driver functions).
-
trait
WithResult extends AnyRef
Functions to work with result (provided collection functions).
-
sealed
trait
WriteHandler extends (ChannelId, WriteOp, Request) ⇒ Option[Try[Response]]
Write handler.
-
sealed
trait
WriteOp extends AnyRef
Operator, along with request when writing.
-
trait
WriteResponseMaker[T] extends (ChannelId, T) ⇒ Option[Try[Response]]
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
-
object
&
Meta-extractor, to combine extractor on BSON properties.
Meta-extractor, to combine extractor on BSON properties.
- See also
-
object
AcolyteDSL extends WithDriver with WithDB with WithCollection with WithHandler with WithResult
Acolyte DSL for ReactiveMongo.
-
object
CommandRequest
Request extractor for any command (at DB or collection level)
- object ComposeWithCompletion extends LowPriorityCompose
-
object
ConnectionHandler
Companion object for connection handler.
-
object
ConnectionManager
Connection manage companion.
-
object
CountRequest
Body extractor for Count request.
Body extractor for Count request.
- See also
-
object
DeleteOp extends WriteOp with Product with Serializable
Delete operator
-
object
DeleteRequest
Delete request
-
object
DriverManager
Driver manage companion.
-
object
FindAndModifyRequest
Request extractor for the
findAndModify
command -
object
InClause
In clause extractor ($in with BSONArray; e.g.
In clause extractor ($in with BSONArray; e.g. { '$in': [ ... ] })
-
object
InsertOp extends WriteOp with Product with Serializable
Insert operator
-
object
InsertRequest
Insert request
- object MongoDB
-
object
NotInClause
Not-In clause extractor.
Not-In clause extractor. ($nin with BSONArray; e.g. { '$nin': [ ... ] })
-
object
QueryHandler
Query handler companion.
-
object
QueryResponse
Query response factory.
-
object
QueryResponseMaker
Response maker companion.
-
object
Request
Request companion
-
object
RequestBody
Complete request body extractor; Matches body with many documents.
-
object
SimpleBody
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.
-
object
UpdateElement
Update request
-
object
UpdateOp extends WriteOp with Product with Serializable
Update operator
-
object
UpdateRequest
Update request
-
object
ValueDocument
Extractor of properties for a document used a BSON value (when operator is used, e.g.
-
object
ValueList
Extracts values of BSON array as list.
Extracts values of BSON array as list.
- See also
-
object
WriteHandler
Write handler companion.
-
object
WriteResponse
Write response factory.
-
object
WriteResponseMaker
Response maker companion.