Packages

p

gnieh.sohva

mango

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. mango
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class All(values: Seq[JsValue]) extends Selector with Combination with Product with Serializable
  2. final case class AllMatch(selector: Selector) extends Selector with Combination with Product with Serializable
  3. final case class And(selectors: Seq[Selector]) extends Selector with Combination with Product with Serializable
  4. final case class Asc(field: String) extends Sort with Product with Serializable
  5. sealed trait Combination extends Selector with Operator
  6. sealed trait Condition extends Selector with Operator
  7. final case class Def(fields: Vector[Sort]) extends Product with Serializable
  8. final case class Desc(field: String) extends Sort with Product with Serializable
  9. final case class ElemMatch(selector: Selector) extends Selector with Combination with Product with Serializable
  10. final case class Eq(value: JsValue) extends Selector with Condition with Product with Serializable
  11. final case class Exists(exists: Boolean) extends Selector with Condition with Product with Serializable
  12. 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
  13. final case class Field(name: String, selector: Selector) extends Selector with Product with Serializable
  14. final case class Gt(value: JsValue) extends Selector with Condition with Product with Serializable
  15. final case class Gte(value: JsValue) extends Selector with Condition with Product with Serializable
  16. final case class In(values: Seq[JsValue]) extends Selector with Condition with Product with Serializable
  17. class Index extends AnyRef

    The index manager for a given database.

  18. final case class IndexCreationResult(result: String, id: String, name: String) extends Product with Serializable
  19. final case class IndexDef(ddoc: Option[String], name: String, type: String, def: Def) extends Product with Serializable
  20. final case class IndexInfo(total_rows: Int, indexes: Vector[IndexDef]) extends Product with Serializable
  21. final case class Lt(value: JsValue) extends Selector with Condition with Product with Serializable
  22. final case class Lte(value: JsValue) extends Selector with Condition with Product with Serializable
  23. trait MangoProtocol extends DefaultJsonProtocol
  24. final case class Mod(divisor: Int, remainder: Int) extends Selector with Condition with Product with Serializable
  25. class ModuloBase extends AnyRef
  26. final case class Ne(value: JsValue) extends Selector with Condition with Product with Serializable
  27. final case class Nin(values: Seq[JsValue]) extends Selector with Condition with Product with Serializable
  28. final case class Nor(selectors: Seq[Selector]) extends Selector with Combination with Product with Serializable
  29. final case class Not(selector: Selector) extends Selector with Combination with Product with Serializable
  30. sealed abstract class ObjectType extends AnyRef
  31. sealed trait Operator extends Selector
  32. final case class Or(selectors: Seq[Selector]) extends Selector with Combination with Product with Serializable
  33. 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
  34. final case class QueryRange(start_key: JsValue, end_key: JsValue) extends Product with Serializable
  35. final case class Regex(regex: String) extends Selector with Condition with Product with Serializable
  36. final case class SearchResult[T](docs: Vector[T], warning: Option[String]) extends Product with Serializable
  37. sealed abstract class Selector extends AnyRef
  38. class SelectorBase extends AnyRef

    The base of a selector, it is one of the conditions on fields.

  39. final case class Size(size: Int) extends Selector with Condition with Product with Serializable
  40. sealed trait Sort extends AnyRef
  41. final case class Type(tpe: ObjectType) extends Selector with Condition with Product with Serializable
  42. type UseIndex = Either[String, (String, String)]
  43. type Without = mango.Without.Value

Value Members

  1. def field(fld: String): SelectorBase

    Initiates a selector for the given field.

  2. val fields: mango.Without.Value
  3. def find: Query

    Creates an empty query.

  4. val index: mango.Without.Value
  5. val limit: mango.Without.Value
  6. val self: SelectorBase

    Initiates a selector for the current json value.

  7. val skip: mango.Without.Value
  8. val sort: mango.Without.Value
  9. def within(fld: String)(sel: Selector): Selector

    Creates a sub selector applying within the given field.

  10. object ArrayObject extends ObjectType with Product with Serializable
  11. object BooleanObject extends ObjectType with Product with Serializable
  12. object Empty extends Selector with Product with Serializable
  13. object MangoProtocol extends MangoProtocol
  14. object NullObject extends ObjectType with Product with Serializable
  15. object NumberObject extends ObjectType with Product with Serializable
  16. object ObjectObject extends ObjectType with Product with Serializable
  17. object ObjectType
  18. object SingleMap
  19. object StringObject extends ObjectType with Product with Serializable
  20. object Without extends Enumeration

Inherited from AnyRef

Inherited from Any

Ungrouped