# 1.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.

- 1.3.1. `/{db}`
  - 1.3.1.1. Specifying the Document ID
  - 1.3.1.2. Batch Mode Writes
- 1.3.2. `/{db}/_all_docs`
- 1.3.3. `/{db}/_design_docs`
  - 1.3.3.1. Sending multiple queries to a database
    - 1.3.3.1.1. `/{db}/_all_docs/queries`
    - 1.3.3.1.2. `/{db}/_design_docs/queries`
- 1.3.4. `/{db}/_bulk_get`
- 1.3.5. `/{db}/_bulk_docs`
  - 1.3.5.1. Inserting Documents in Bulk
  - 1.3.5.2. Updating Documents in Bulk
  - 1.3.5.3. Bulk Documents Transaction Semantics
  - 1.3.5.4. Bulk Document Validation and Conflict Errors
- 1.3.6. `/{db}/_find`
  - 1.3.6.1. Sort Syntax
  - 1.3.6.2. Filtering Fields
  - 1.3.6.3. Pagination
  - 1.3.6.4. Execution Statistics
- 1.3.7. `/{db}/_index`
- 1.3.8. `/{db}/_explain`
  - 1.3.8.1. Index selection
- 1.3.9. `/{db}/_shards`
- 1.3.10. `/{db}/_shards/{docid}`
- 1.3.11. `/{db}/_sync_shards`
- 1.3.12. `/{db}/_changes`
  - 1.3.12.1. Changes Feeds
    - 1.3.12.1.1. Polling
    - 1.3.12.1.2. Long Polling
    - 1.3.12.1.3. Continuous
    - 1.3.12.1.4. Event Source
  - 1.3.12.2. Filtering
    - 1.3.12.2.1. _doc_ids
    - 1.3.12.2.2. _selector
      - 1.3.12.2.2.1. Missing selector
      - 1.3.12.2.2.2. Not a valid JSON object
      - 1.3.12.2.2.3. Not a valid selector
    - 1.3.12.2.3. _design
    - 1.3.12.2.4. _view
- 1.3.13. `/{db}/_compact`
- 1.3.14. `/{db}/_compact/{ddoc}`
- 1.3.15. `/{db}/_ensure_full_commit`
- 1.3.16. `/{db}/_view_cleanup`
- 1.3.17. `/{db}/_search_cleanup`
- 1.3.18. `/{db}/_nouveau_cleanup`
- 1.3.19. `/{db}/_security`
- 1.3.20. `/{db}/_purge`
  - 1.3.20.1. Internal Replication
  - 1.3.20.2. External Replication
  - 1.3.20.3. Updating Indexes
- 1.3.21. `/{db}/_purged_infos`
- 1.3.22. `/{db}/_purged_infos_limit`
- 1.3.23. `/{db}/_missing_revs`
- 1.3.24. `/{db}/_revs_diff`
- 1.3.25. `/{db}/_revs_limit`