# CouchDB Input

The CouchDB Input step retrieves documents from a view in a design document in a CouchDB database.

### Output

This step outputs one field:

* `JSON` (String). Contains one row per document returned by the selected view.

### Step name

* **Step name**: Specify the unique name of the CouchDB Input step on the canvas.

### Options

Configure the CouchDB connection and the view to query.

| Option                      | Description                                                                                                                                                                                                                           |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Host name or IP**         | Specify the host name for the connection to your database.                                                                                                                                                                            |
| **Port**                    | Specify the port number for the connection to your database.                                                                                                                                                                          |
| **Database**                | Specify the name of the database.                                                                                                                                                                                                     |
| **Design document**         | Identify the source design document. Design documents are a special type of CouchDB document that contains application code. See [CouchDB Design Documents](http://guide.couchdb.org/editions/1/en/design.html) for more information. |
| **View name**               | Identify the source CouchDB view. See [CouchDB Views](http://guide.couchdb.org/editions/1/en/views.html#views+) for more information.                                                                                                 |
| **Authentication user**     | Specify the user name required to access the database.                                                                                                                                                                                |
| **Authentication password** | Specify the password required to access the database.                                                                                                                                                                                 |

### Learn more

See the [CouchDB guide](http://guide.couchdb.org/editions/1/en/index.html) for background on CouchDB, design documents, and views.

### Metadata injection support

This step does not support metadata injection.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/pdi-transformation-steps-reference-overview/couchdb-input.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
