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