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 ""
- couchPutDB :: MonadCouch m => Path -> ResourceT m ()
- couchPutDB' :: MonadCouch m => Path -> ResourceT m ()
- couchDeleteDB :: MonadCouch m => Path -> ResourceT m ()
Methods
Arguments
| :: MonadCouch m | |
| => Path | CouchDB Database name. See note above. |
| -> ResourceT m () |
Create CouchDB database.
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.
Arguments
| :: MonadCouch m | |
| => Path | CouchDB Database name. See note above. |
| -> ResourceT m () |
Delete a database.