# Couchbase

{% hint style="info" %}
The content of this documentation is under revision and may change. We appreciate your understanding as we work to improve it.
{% endhint %}

**Couchbase** queries Couchbase Views with a poll strategy and/or performs various operations against Couchbase databases.

## **Parameters**

Take a look at the configuration options for the connector. Parameters supported by [Double Braces expressions](/documentation/connectors-and-triggers/double-braces/overview.md) are marked with `(DB)`.

### **General tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Dynamic Account</strong></td><td>When active, the connector will use the account dynamically. Otherwise, it will use the account statically.</td><td>False</td><td>Boolean</td></tr><tr><td><strong>Account Name</strong> <code>(DB)</code></td><td>The name of the dynamic account used by the connector. This account must have been previously configured in a <a href="/pages/0kxlZ011XP4A2T43v9kh"><strong>Store Account</strong></a> connector in the pipeline for this process to take effect. It is only available if the <strong>Dynamic Account</strong> parameter is active.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Account</strong></td><td>The account used by the connector. It is only available if the <strong>Dynamic Account</strong> parameter is inactive.</td><td>N/A</td><td>Account</td></tr><tr><td><strong>Protocol</strong> <code>(DB)</code></td><td>The protocol to use.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Hostname</strong> <code>(DB)</code></td><td>The hostname to use.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Bucket</strong> <code>(DB)</code></td><td>The bucket to use.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Fail On Error</strong></td><td>If the option is activated, the pipeline's execution with an error will be interrupted. Otherwise, the pipeline execution proceeds, but the result will show a false value for the <code>"success"</code> property.</td><td>False</td><td>Boolean</td></tr></tbody></table>

### **Optional tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Port</strong></td><td>The port number to use.</td><td>8091</td><td>Integer</td></tr><tr><td><strong>Collection</strong> <code>(DB)</code></td><td>The collection to use.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Key</strong> <code>(DB)</code></td><td>The key to use.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Scope</strong> <code>(DB)</code></td><td>The scope to use.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Auto Start Id For Inserts</strong></td><td>Defines whether to autostart ID when doing an insert operation.</td><td>False</td><td>Boolean</td></tr><tr><td><strong>Operation</strong> <code>(DB)</code></td><td>The operation to do.</td><td>CCB_PUT</td><td>String</td></tr><tr><td><strong>Persist To</strong></td><td>Where to persist the data.</td><td>0</td><td>Integer</td></tr><tr><td><strong>Producer Retry Attempts</strong></td><td>Defines the number of retry attempts.</td><td>2</td><td>Integer</td></tr><tr><td><strong>Producer Retry Pause</strong></td><td>Defines the retry pause between different attempts.</td><td>5000</td><td>Integer</td></tr><tr><td><strong>Replicate To</strong></td><td>Where to replicate the data.</td><td>0</td><td>Integer</td></tr><tr><td><strong>Starting Id For Inserts From</strong></td><td>Defines the starting ID where we are doing an insert operation.</td><td>N/A</td><td>Integer</td></tr><tr><td><strong>Additional Hosts</strong> <code>(DB)</code></td><td>The additional hosts.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Connect Timeout</strong></td><td>Defines the connection timeout in milliseconds.</td><td>30000</td><td>Integer</td></tr><tr><td><strong>Query Timeout</strong></td><td>Defines the operation timeout in milliseconds.</td><td>2500</td><td>Integer</td></tr></tbody></table>

### **Headers tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>CCB_ID</strong> <code>(DB)</code></td><td>The document ID.</td><td>N/A</td><td>String</td></tr><tr><td><strong>CCB_TTL</strong> <code>(DB)</code></td><td>The expiry for the document in seconds.</td><td>N/A</td><td>String</td></tr></tbody></table>

### **Documentation tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Documentation</strong></td><td>Section for documenting any necessary information about the connector configuration and business rules.</td><td>N/A</td><td>String</td></tr></tbody></table>


---

# 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.digibee.com/documentation/connectors-and-triggers/connectors/structured-data/couchbase.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.
