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

Database.CouchDB.Conduit.DB

Contents

Description

CouchDB database methods.

Note about paths. If you passed a database name to Database.CouchDB.Conduit, the path in methods below should be the empty. But, if you passed the empty to CouchConnection, then the couchDB should be used in these methods.

 runCouch def $ couchPutDb "my_new_db"
 runCouch def {couchDB="another_new_db"} $ couchPutDb ""

Synopsis

Methods

couchPutDBSource

Arguments

:: MonadCouch m 
=> Path

CouchDB Database name. See note above.

-> ResourceT m () 

Create CouchDB database.

couchPutDB'Source

Arguments

:: MonadCouch m 
=> Path

CouchDB Database name. See note above.

-> ResourceT m () 

Brute force version of couchPutDb. Create CouchDB database regardless of presence. Catches CouchError 412.

couchDeleteDBSource

Arguments

:: MonadCouch m 
=> Path

CouchDB Database name. See note above.

-> ResourceT m () 

Delete a database.