Skip to content

Latest commit

 

History

History

couchbase

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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"
    }
  }
}