CouchDB – Deleting a Database Deleting a Database using cURL Utility You can delete a database in CouchDB by sending a request to the server using DELETE method through cURL utility. Following is the syntax to create a database − $ curl -X DELETE http://127.0.0.1:5984/database name Using −X we can specify a custom request method […]
Category Archives: couchdb
CouchDB – Updating a Document Updating Documents using cURL You can update a document in CouchDB by sending an HTTP request to the server using PUT method through cURL utility. Following is the syntax to update a document. curl -X PUT http://127.0.0.1:5984/database_name/document_id/ -d ”{ “field” : “value”, “_rev” : “revision id” }” Example Suppose there […]
CouchDB – Creating a Database Database is the outermost data structure in CouchDB where your documents are stored. You can create these databases using cURL utility provided by CouchDB, as well as Futon the web interface of CouchDB. Creating a Database using cURL Utility You can create a database in CouchDB by sending an HTTP […]