couchbase
Performs operations against Couchbase for each message, allowing you to store or retrieve data within message payloads.
Introduced in version 4.11.0.
When inserting, replacing or upserting documents, each must have the content property set.
-
Common
-
Advanced
processor:
label: ""
couchbase:
url: "" # No default (required)
username: "" # No default (optional)
password: "" # No default (optional)
bucket: "" # No default (required)
id: "" # No default (required)
content: "" # No default (optional)
operation: get
processor:
label: ""
couchbase:
url: "" # No default (required)
username: "" # No default (optional)
password: "" # No default (optional)
bucket: "" # No default (required)
collection: "" # No default (optional)
scope: "" # No default (optional)
transcoder: legacy
timeout: 15s
id: "" # No default (required)
content: "" # No default (optional)
ttl: "" # No default (optional)
operation: get
Fields
id
Document id.
This field supports interpolation functions.
Type: string
# Examples:
id: ${! json("id") }
operation
Couchbase operation to perform.
Type: string
Default: get
| Option | Summary |
|---|---|
|
fetch a document. |
|
insert a new document. |
|
delete a document. |
|
replace the contents of a document. |
|
creates a new document if it does not exist, if it does exist then it updates it. |
password
A password to authenticate with the Couchbase cluster.
|
This field contains sensitive information that usually shouldn’t be added to a configuration directly. For more information, see Secrets. |
Type: string
timeout
The timeout for Couchbase operations, including connecting to the cluster and waiting for the bucket to become ready.
Type: string
Default: 15s
transcoder
The Couchbase transcoder to use for converting the data format of documents written to and read from Couchbase.
Type: string
Default: legacy
| Option | Summary |
|---|---|
|
JSONTranscoder implements the default transcoding behavior and applies JSON transcoding to all values. This will apply the following behavior to the value: binary ([]byte) → error. default → JSON value, JSON Flags. |
|
LegacyTranscoder implements the behavior for a backward-compatible transcoder. This transcoder implements behavior matching that of gocb v1.This will apply the following behavior to the value: binary ([]byte) → binary bytes, Binary expectedFlags. string → string bytes, String expectedFlags. default → JSON value, JSON expectedFlags. |
|
RawBinaryTranscoder implements passthrough behavior of raw binary data. This transcoder does not apply any serialization. This will apply the following behavior to the value: binary ([]byte) → binary bytes, binary expectedFlags. default → error. |
|
RawJSONTranscoder implements passthrough behavior of JSON data. This transcoder does not apply any serialization. It will forward data across the network without incurring unnecessary parsing costs. This will apply the following behavior to the value: binary ([]byte) → JSON bytes, JSON expectedFlags. string → JSON bytes, JSON expectedFlags. default → error. |
|
RawStringTranscoder implements passthrough behavior of raw string data. This transcoder does not apply any serialization. This will apply the following behavior to the value: string → string bytes, string expectedFlags. default → error. |