gnieh.sohva

Design

trait Design extends AnyRef

A design gives access to the different views. Use this class to get or create new views.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Design
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Result[T]

Abstract Value Members

  1. abstract def delete: Result[Boolean]

    Deletes this design document from the couchdb instance

  2. abstract def deleteFilter(name: String): Result[Boolean]

    Deletes the filter identified by its name from the design document

  3. abstract def deleteValidateFunction: Result[Boolean]

    Deletes the document validation function from the design

  4. abstract def deleteView(viewName: String): Result[Boolean]

    Deletes the view with the given name from the design

  5. abstract def getDesignDocument: Result[Option[DesignDoc]]

    Returns the design document from the couchdb instance.

    Returns the design document from the couchdb instance. Returns None if the design document does not exist.

  6. abstract val language: String

  7. abstract val name: String

  8. abstract def saveFilter(name: String, filterFun: String): Result[Boolean]

    Creates or updates a filter function.

    Creates or updates a filter function. If the design does not exist yet, it is created.

  9. abstract def saveValidateFunction(validateFun: String): Result[Boolean]

    Creates or updates the document validation function.

    Creates or updates the document validation function. If the design does not exist yet, it is created.

  10. abstract def saveView(viewName: String, view: ViewDoc): Result[Boolean]

    Creates or updates the view in this design with the given name.

    Creates or updates the view in this design with the given name. If the design does not exist yet, it is created.

  11. abstract def saveView(viewName: String, mapFun: String, reduceFun: Option[String] = None): Result[Boolean]

    Creates or updates the view in this design with the given name, map function and reduce function.

    Creates or updates the view in this design with the given name, map function and reduce function. If the design does not exist yet, it is created.

  12. abstract def view[Key, Value, Doc](viewName: String)(implicit arg0: Manifest[Key], arg1: Manifest[Value], arg2: Manifest[Doc]): View[Key, Value, Doc]

    Returns the (typed) view in this design document.

    Returns the (typed) view in this design document. The different types are:

    • Key: type of the key for this view
    • Value: Type of the value returned in the result
    • Doc: Type of the full document in the case where the view is queried with include_docs set to true

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped