Apache CouchDB
2.1

Table of Contents

  • 1. Introduction
  • 2. Installation & First-Time Setup
  • 3. Configuring CouchDB
  • 4. Replication
  • 5. CouchDB Maintenance
  • 6. Design Documents
  • 7. CouchDB Externals API
  • 8. Query Server
  • 9. Fauxton
  • 10. API Reference
    • 10.1. API Basics
    • 10.2. Server
    • 10.3. Databases
      • 10.3.1. /db
      • 10.3.2. /db/_all_docs
      • 10.3.3. /db/_bulk_docs
      • 10.3.4. /db/_find
      • 10.3.5. /db/_index
      • 10.3.6. /db/_explain
      • 10.3.7. /db/_changes
      • 10.3.8. /db/_compact
      • 10.3.9. /db/_compact/design-doc
      • 10.3.10. /db/_ensure_full_commit
      • 10.3.11. /db/_view_cleanup
      • 10.3.12. /db/_security
      • 10.3.13. /db/_purge
      • 10.3.14. /db/_missing_revs
      • 10.3.15. /db/_revs_diff
      • 10.3.16. /db/_revs_limit
    • 10.4. Documents
    • 10.5. Design Documents
    • 10.6. Local (non-replicating) Documents
  • 11. Cluster Reference
  • 12. JSON Structure Reference
  • 13. Experimental Features
  • 14. Contributing to this Documentation
  • 15. Release History
  • 16. Security Issues Information
  • 17. Reporting New Security Problems with Apache CouchDB
  • 18. About CouchDB Documentation

Quick Reference

  • HTTP API Reference
  • Configuration Reference

Local Links

  • Fauxton

More Help

  • CouchDB Homepage
  • Mailing Lists
  • IRC
  • Issue Tracker
  • Download Docs
Apache CouchDB
  • Docs »
  • 10. API Reference »
  • 10.3. Databases
  • Edit on GitHub

10.3. DatabasesΒΆ

The Database endpoint provides an interface to an entire database with in CouchDB. These are database-level, rather than document-level requests.

For all these requests, the database name within the URL path should be the database name that you wish to perform the operation on. For example, to obtain the meta information for the database recipes, you would use the HTTP request:

GET /recipes

For clarity, the form below is used in the URL paths:

GET /db

Where db is the name of any database.

  • 10.3.1. /db
    • Specifying the Document ID
    • Batch Mode Writes
  • 10.3.2. /db/_all_docs
  • 10.3.3. /db/_bulk_docs
    • Inserting Documents in Bulk
    • Updating Documents in Bulk
    • Bulk Documents Transaction Semantics
    • Bulk Document Validation and Conflict Errors
  • 10.3.4. /db/_find
    • Selector Syntax
      • Selector Basics
      • Selector with 2 fields
      • Subfields
      • Operators
      • Implicit Operators
      • Explicit Operators
      • Combination Operators
      • Condition Operators
      • Creating Selector Expressions
    • Sort Syntax
    • Filtering Fields
  • 10.3.5. /db/_index
  • 10.3.6. /db/_explain
    • Index selection
  • 10.3.7. /db/_changes
    • Changes Feeds
      • Polling
      • Long Polling
      • Continuous
      • Event Source
    • Filtering
      • _doc_ids
      • _selector
        • Missing selector
        • Not a valid JSON object
        • Not a valid selector
      • _design
      • _view
  • 10.3.8. /db/_compact
  • 10.3.9. /db/_compact/design-doc
  • 10.3.10. /db/_ensure_full_commit
  • 10.3.11. /db/_view_cleanup
  • 10.3.12. /db/_security
  • 10.3.13. /db/_purge
    • Updating Indexes
  • 10.3.14. /db/_missing_revs
  • 10.3.15. /db/_revs_diff
  • 10.3.16. /db/_revs_limit
Next Previous

© Copyright 2017, Apache Software Foundation.

Built with Sphinx using a theme provided by Read the Docs.