Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
activity.go
activity_test.go
descriptor.json
go.mod
go.sum
metadata.go

README.md

Couchbase

This activity allows you to Get, Insert, Update and Delete a document in couchbase database.

Installation

Flogo CLI

flogo install github.com/project-flogo/datastore-contrib/activity/couchbase

Configuration

Settings:

Name Type Description
username string Cluster username
password string Cluster password
bucketName string The bucket name
bucketPassword string The bucket password if any
server string The Couchbase server (e.g. couchbase://127.0.0.1)
method string The method type (Insert, Upsert, Remove or Get); (default: Insert)
expiry int The document expiry; (default: 0)

Input:

Name Type Description
key string The document key identifier
data string The document data (when the method is get this field is ignored)

Output:

Name Type Description
data object

Example

The below example allows you to configure the activity to insert the value "example" with key "test"

{
  "id": "couchbase_insert",
  "name": "Couchbase Insert",
  "description": "Couchbase Insert Example",
  "activity": {
    "ref": "github.com/project-flogo/datastore-contrib/activity/couchbase",
    "settings": {
      "server" : "http://localhost:8091",
      "username": "Administrator",
      "password": "password",
      "bucketName" : "sample",
      "method" : "Insert"
    },
    "input" : {
        "key" : "test",
        "data" : "example"
    }
  }
}
You can’t perform that action at this time.