couchdb-conduit-0.4.1: Couch DB client library using http-conduit and aeson

Database.CouchDB.Conduit.Design

Description

High-level API for CouchDB design documents. These methods are very convenient for bootstrapping and testing.

Synopsis

Documentation

couchPutView_Source

Arguments

:: MonadCouch m 
=> Path

Design document

-> Path

View name

-> ByteString

Map function

-> Maybe ByteString

Reduce function

-> ResourceT m Revision 

Put view in design document if it not exists. If design document does not exist, it will be created.

couchPutView'Source

Arguments

:: MonadCouch m 
=> Path

Design document

-> Path

View name

-> ByteString

Map function

-> Maybe ByteString

Reduce function

-> ResourceT m Revision 

Brute-force version of couchViewPut'. Put view in design document. If design document does not exist, it will be created.