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

Database.CouchDB.Conduit.DB

Contents

Description

CouchDB database methods.

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

Note. All database methods ignores database settings in connection.

Synopsis

Methods

couchPutDBSource

Arguments

:: MonadCouch m 
=> Path

CouchDB Database name.

-> ResourceT m () 

Create CouchDB database.

couchPutDB_Source

Arguments

:: MonadCouch m 
=> Path

CouchDB Database name.

-> ResourceT m () 

"Don't care" version of couchPutDb. Create CouchDB database only in its absence. For this it handles 412 responses.

couchDeleteDBSource

Arguments

:: MonadCouch m 
=> Path

CouchDB Database name.

-> ResourceT m () 

Delete a database.

couchReplicateDBSource

Arguments

:: MonadCouch m 
=> ByteString

Source database. Path or URL

-> ByteString

Target database. Path or URL

-> Bool

Target creation flag

-> Bool

Continuous flag

-> Bool

Cancel flag

-> ResourceT m () 

Database replication.

See http://guide.couchdb.org/editions/1/en/api.html#replication for details.