Movatterモバイル変換


[0]ホーム

URL:


Skip to Content
Getting Started with CouchDB
book

Getting Started with CouchDB

byMC Brown
January 2012
Beginner
84 pages
1h 58m
English

Read now

Unlock full access

Contents

  • IntroductionConventions Used in This BookUsing Code ExamplesSafari® Books OnlineHow to Contact UsAcknowledgements
  • Learning to RelaxA Different Data ModelReplicationEventual ConsistencyData: Local, Remote, EverywhereCouchDB Deployment and Peformance
  • Installation on LinuxInstallation on Mac OS XUsing HomebrewUsing MacPortsInstallation on WindowsInstallation from SourceConfiguring and Building CouchDBRunning CouchDBNext Steps
  • Using FutonManaging Databases and DocumentsConfiguring ReplicationPopulating a Simple DatabaseCreating DatabasesCreating DocumentsUpdating DocumentsDeleting DocumentsDeleting DatabasesCommon OperationsHTTP OperationsErrorsHTTP HeadersRequest HeadersResponse HeadersHTTP URL PathsJSONDocumentsDocument StructureDocument TypesStructure and Consistency
  • Creating Design DocumentsShowsViewsView BasicsQuerying a ViewQuerying on Complex DataQuerying Compound DataReduce FunctionsBuilt-in _countBuilt-in _sumBuilt-in _statsCustom reduce functionsError handling in viewsTemporary viewsQuerying View ResultsLists
Content preview fromGetting Started with CouchDB

Chapter 3. CouchDB Basics

Before you start using the CouchDB API, you need to think about the basic processes of accessing the CouchDB server, and how you perform the basic commands and operations that make up your interaction.

For this chapter, we are going to concern ourselves with the basic layout, structure, and how to communicate and exchange the basic information to and from the server.

On that note, it is worth restating that CouchDB works entirely through the HTTP-based CouchDB REST API. That means that if you have an application or environment that can talk HTTP (and many can), you can communicate through the CouchDB API. The interaction is entirely based around the HTTP protocol and the path and data that you supply, either as part of the URL specification or as HTTP payload data.

In this context, HTTP is ideally suited to the database interactions because it supports many of the same basic operations in a database (Create, Retrieve, Update, and Delete) and can be directly mapped to the HTTP protocol operations of PUT, GET, POST, and DELETE.

The URL component of the HTTP request is important within CouchDB in that it is used to identify individual components (databases, documents, other components) within CouchDB. More on this later in the chapter.

Looking at everything without seeing it in action would be difficult, so let’s look at some basic interactions that you might typically perform with your CouchDB database.

Using Futon

Futon is a native web-based interface built into ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

Publisher Resources

ISBN: 9781449309589Errata Page

[8]ページ先頭

©2009-2026 Movatter.jp