Join Joseph LeBlanc for an in-depth discussion in this video Retrieving data, part of Up and Running with NoSQL Databases.
- View Offline
While the user interface of CouchDB is handy for creating new databases and documents quickly, …you will eventually want to get the data from those documents in a standardized way. …Fortunately, JSON-formatted data is readily available from CouchDB through HTTP. …We've started up CouchDB, and it lists all the databases here. …Let's open up a new tab and go to /_all_dbs. …You'll notice that those three databases are now listed again only in JSON format.…
If we go to /restaurant, you might expect that all the records from restaurant are listed. …However, this only lists the information about the restaurant database. …To get a list of all of the documents in the restaurant database, go to /restaurant/_all_docs. …Now again, we see all the same information that you would see if you navigate to restaurant here in Futon. …We'd also like to be able to get the information about a single document.…
To do that, copy the ID and paste it in as the last segment of the URL. …All of the data from this document is now displayed in JSON format, including the name …
- What is NoSQL?
- Installing CouchDB on Mac, Windows, and Linux
- Storing data
- Nesting document data
- Specifying search criteria
- Reducing data
- Attaching and retrieving images
- Deploying applications
- Securing CouchDB
- Understanding the CAP theorem