package mango
The [mango query server](http://docs.couchdb.org/en/2.0.0/api/database/find.html) was introduced in CouchDB 2.0. It allows for querying documents in a database with a declarative syntax and is easier to use that the classic CouchDB views.
- Alphabetic
- By Inheritance
- mango
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class All (values: Seq[JsValue]) extends Selector with Combination with Product with Serializable
- final case class AllMatch (selector: Selector) extends Selector with Combination with Product with Serializable
- final case class And (selectors: Seq[Selector]) extends Selector with Combination with Product with Serializable
- final case class Asc (field: String) extends Sort with Product with Serializable
- sealed trait Combination extends Selector with Operator
- sealed trait Condition extends Selector with Operator
- final case class Def (fields: Vector[Sort]) extends Product with Serializable
- final case class Desc (field: String) extends Sort with Product with Serializable
- final case class ElemMatch (selector: Selector) extends Selector with Combination with Product with Serializable
- final case class Eq (value: JsValue) extends Selector with Condition with Product with Serializable
- final case class Exists (exists: Boolean) extends Selector with Condition with Product with Serializable
- final case class Explanation (dbname: String, index: IndexDef, selector: Selector, opts: JsObject, limit: Int, skip: Int, fields: Either[String, Vector[String]], range: QueryRange) extends Product with Serializable
- final case class Field (name: String, selector: Selector) extends Selector with Product with Serializable
- final case class Gt (value: JsValue) extends Selector with Condition with Product with Serializable
- final case class Gte (value: JsValue) extends Selector with Condition with Product with Serializable
- final case class In (values: Seq[JsValue]) extends Selector with Condition with Product with Serializable
-
class
Index
extends AnyRef
The index manager for a given database.
- final case class IndexCreationResult (result: String, id: String, name: String) extends Product with Serializable
- final case class IndexDef (ddoc: Option[String], name: String, type: String, def: Def) extends Product with Serializable
- final case class IndexInfo (total_rows: Int, indexes: Vector[IndexDef]) extends Product with Serializable
- final case class Lt (value: JsValue) extends Selector with Condition with Product with Serializable
- final case class Lte (value: JsValue) extends Selector with Condition with Product with Serializable
- trait MangoProtocol extends DefaultJsonProtocol
- final case class Mod (divisor: Int, remainder: Int) extends Selector with Condition with Product with Serializable
- class ModuloBase extends AnyRef
- final case class Ne (value: JsValue) extends Selector with Condition with Product with Serializable
- final case class Nin (values: Seq[JsValue]) extends Selector with Condition with Product with Serializable
- final case class Nor (selectors: Seq[Selector]) extends Selector with Combination with Product with Serializable
- final case class Not (selector: Selector) extends Selector with Combination with Product with Serializable
- sealed abstract class ObjectType extends AnyRef
- sealed trait Operator extends Selector
- final case class Or (selectors: Seq[Selector]) extends Selector with Combination with Product with Serializable
- final case class Query (selector: Selector, fields: Iterable[String], sort: Seq[Sort], limit: Option[Int], skip: Option[Int], use_index: Option[UseIndex]) extends Product with Serializable
- final case class QueryRange (start_key: JsValue, end_key: JsValue) extends Product with Serializable
- final case class Regex (regex: String) extends Selector with Condition with Product with Serializable
- final case class SearchResult [T](docs: Vector[T], warning: Option[String]) extends Product with Serializable
- sealed abstract class Selector extends AnyRef
-
class
SelectorBase
extends AnyRef
The base of a selector, it is one of the conditions on fields.
- final case class Size (size: Int) extends Selector with Condition with Product with Serializable
- sealed trait Sort extends AnyRef
- final case class Type (tpe: ObjectType) extends Selector with Condition with Product with Serializable
- type UseIndex = Either[String, (String, String)]
- type Without = mango.Without.Value
Value Members
-
def
field(fld: String): SelectorBase
Initiates a selector for the given field.
- val fields: mango.Without.Value
-
def
find: Query
Creates an empty query.
- val index: mango.Without.Value
- val limit: mango.Without.Value
-
val
self: SelectorBase
Initiates a selector for the current json value.
- val skip: mango.Without.Value
- val sort: mango.Without.Value
-
def
within(fld: String)(sel: Selector): Selector
Creates a sub selector applying within the given field.
- object ArrayObject extends ObjectType with Product with Serializable
- object BooleanObject extends ObjectType with Product with Serializable
- object Empty extends Selector with Product with Serializable
- object MangoProtocol extends MangoProtocol
- object NullObject extends ObjectType with Product with Serializable
- object NumberObject extends ObjectType with Product with Serializable
- object ObjectObject extends ObjectType with Product with Serializable
- object ObjectType
- object SingleMap
- object StringObject extends ObjectType with Product with Serializable
- object Without extends Enumeration