couchdb-conduit-0.1.3.0: 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

couchViewPutSource

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.

couchViewPut'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.