This activity allows you to Get, Insert, Update and Delete a document in couchbase database.
flogo install github.com/project-flogo/datastore-contrib/activity/couchbase
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) |
Name |
Type |
Description |
key |
string |
The document key identifier |
data |
string |
The document data (when the method is get this field is ignored) |
Name |
Type |
Description |
data |
object |
|
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"
}
}
}